From 24e50afcb746eb77899c3de22197c29bd0c70de7 Mon Sep 17 00:00:00 2001 From: bernie Date: Tue, 16 Nov 2004 22:41:58 +0000 Subject: [PATCH] Support 64bit CPUs. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@284 38d2e660-2303-0410-9eaa-f027e97ec537 --- cpu.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- 2.25.1