Support 64bit CPUs.
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 16 Nov 2004 22:41:58 +0000 (22:41 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 16 Nov 2004 22:41:58 +0000 (22:41 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@284 38d2e660-2303-0410-9eaa-f027e97ec537

cpu.h

diff --git a/cpu.h b/cpu.h
index 6042d9e06b42e00fdf184bd292858fc3a6e05d31..4d3a5efb9d0f84358b6fd319a101d15e70b2469d 100755 (executable)
--- 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.
  *#*
 #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