From: Will Sowerbutts Date: Thu, 8 Jan 2015 19:38:14 +0000 (+0000) Subject: Kernel: Fix definition of ticks_t X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=75c30e44bdbf941764973f95a1b5eecf2d0bf0a1;p=FUZIX.git Kernel: Fix definition of ticks_t --- diff --git a/Kernel/cpu-6502/cpu.h b/Kernel/cpu-6502/cpu.h index ffce123a..16e63707 100644 --- a/Kernel/cpu-6502/cpu.h +++ b/Kernel/cpu-6502/cpu.h @@ -34,7 +34,7 @@ typedef struct { typedef union { /* this structure is endian dependent */ clock_t full; /* 32-bit count of ticks since boot */ - union { + struct { uint16_t low; /* 16-bit count of ticks since boot */ uint16_t high; } h; diff --git a/Kernel/cpu-6809/cpu.h b/Kernel/cpu-6809/cpu.h index 74705505..6b1ff9ed 100644 --- a/Kernel/cpu-6809/cpu.h +++ b/Kernel/cpu-6809/cpu.h @@ -37,7 +37,7 @@ typedef struct { typedef union { /* this structure is endian dependent */ clock_t full; /* 32-bit count of ticks since boot */ - union { + struct { uint16_t high; uint16_t low; /* 16-bit count of ticks since boot */ } h; diff --git a/Kernel/cpu-z80/cpu.h b/Kernel/cpu-z80/cpu.h index 6e1d0fdf..5c2e9565 100644 --- a/Kernel/cpu-z80/cpu.h +++ b/Kernel/cpu-z80/cpu.h @@ -42,7 +42,7 @@ typedef struct { typedef union { /* this structure is endian dependent */ clock_t full; /* 32-bit count of ticks since boot */ - union { + struct { uint16_t low; /* 16-bit count of ticks since boot */ uint16_t high; } h;