From b636fb935beef29b643516819902e37a4e35fa5f Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 11 Nov 2014 12:37:20 +0000 Subject: [PATCH] cpu: push time_t into CPU dependencies --- Kernel/cpu-6502/cpu.h | 3 +++ Kernel/cpu-6809/cpu.h | 3 +++ Kernel/cpu-z80/cpu.h | 2 ++ Kernel/include/kernel.h | 1 - 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Kernel/cpu-6502/cpu.h b/Kernel/cpu-6502/cpu.h index 8ca9ce37..f19a19d2 100644 --- a/Kernel/cpu-6502/cpu.h +++ b/Kernel/cpu-6502/cpu.h @@ -21,3 +21,6 @@ extern void *memset(void *, int, size_t); extern size_t strlen(const char *); #define staticfast static + +/* FIXME: need to add 64bit helper/struct magic for this compiler */ +typedef unsigned long time_t; diff --git a/Kernel/cpu-6809/cpu.h b/Kernel/cpu-6809/cpu.h index b7670248..4953cd0b 100644 --- a/Kernel/cpu-6809/cpu.h +++ b/Kernel/cpu-6809/cpu.h @@ -24,3 +24,6 @@ extern size_t strlen(const char *); /* 6809 doesn't benefit from making a few key variables in non-reentrant functions static */ #define staticfast auto + +/* FIXME: should be 64bits - need to add helpers and struct variants */ +typedef unsigned long long time_t; diff --git a/Kernel/cpu-z80/cpu.h b/Kernel/cpu-z80/cpu.h index ae9b0b0f..993150dc 100644 --- a/Kernel/cpu-z80/cpu.h +++ b/Kernel/cpu-z80/cpu.h @@ -28,4 +28,6 @@ extern int16_t strlen(const char *p); #define staticfast static +typedef unsigned long long time_t; + #endif diff --git a/Kernel/include/kernel.h b/Kernel/include/kernel.h index c5e5fec3..177e915a 100644 --- a/Kernel/include/kernel.h +++ b/Kernel/include/kernel.h @@ -73,7 +73,6 @@ typedef struct s_queue { /* User's structure for times() system call */ typedef unsigned long clock_t; -typedef unsigned long long time_t; struct tms { clock_t tms_utime; -- 2.34.1