From: bernie Date: Tue, 16 Nov 2004 22:41:58 +0000 (+0000) Subject: Support 64bit CPUs. X-Git-Tag: 1.0.0~957 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=24e50afcb746eb77899c3de22197c29bd0c70de7;p=bertos.git Support 64bit CPUs. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@284 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/cpu.h b/cpu.h index 6042d9e0..4d3a5efb 100755 --- a/cpu.h +++ b/cpu.h @@ -17,6 +17,9 @@ /*#* *#* $Log$ + *#* Revision 1.23 2004/11/16 22:41:58 bernie + *#* Support 64bit CPUs. + *#* *#* Revision 1.22 2004/11/16 21:57:59 bernie *#* CPU_IDLE: Rename from SCHEDULER_IDLE. *#* @@ -327,7 +330,11 @@ #endif /* !SIZEOF_INT */ #ifndef SIZEOF_LONG -#define SIZEOF_LONG 4 +#if CPU_REG_BITS > 32 + #define SIZEOF_LONG 8 +#else + #define SIZEOF_LONG 4 +#endif #endif #ifndef SIZEOF_PTR