cpu: push time_t into CPU dependencies
authorAlan Cox <alan@etchedpixels.co.uk>
Tue, 11 Nov 2014 12:37:20 +0000 (12:37 +0000)
committerAlan Cox <alan@etchedpixels.co.uk>
Tue, 11 Nov 2014 12:37:20 +0000 (12:37 +0000)
Kernel/cpu-6502/cpu.h
Kernel/cpu-6809/cpu.h
Kernel/cpu-z80/cpu.h
Kernel/include/kernel.h

index 8ca9ce3..f19a19d 100644 (file)
@@ -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;
index b767024..4953cd0 100644 (file)
@@ -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;
index ae9b0b0..993150d 100644 (file)
@@ -28,4 +28,6 @@ extern int16_t strlen(const char *p);
 
 #define        staticfast      static
 
+typedef unsigned long long time_t;
+
 #endif
index c5e5fec..177e915 100644 (file)
@@ -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;