From 75c30e44bdbf941764973f95a1b5eecf2d0bf0a1 Mon Sep 17 00:00:00 2001 From: Will Sowerbutts Date: Thu, 8 Jan 2015 19:38:14 +0000 Subject: [PATCH] Kernel: Fix definition of ticks_t --- Kernel/cpu-6502/cpu.h | 2 +- Kernel/cpu-6809/cpu.h | 2 +- Kernel/cpu-z80/cpu.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.34.1