CPU_SAVED_REGS_CNT: Declare for x86/x86_64.
[bertos.git] / cfg / cpu.h
index 2962d88412088455c8b72dcfffa08cb76b051922..cfc2316e801935eb58f5ba3e12df5febcff9b255 100755 (executable)
--- a/cfg/cpu.h
+++ b/cfg/cpu.h
 
 /*#*
  *#* $Log$
+ *#* Revision 1.10  2006/02/24 01:17:30  bernie
+ *#* CPU_SAVED_REGS_CNT: Declare for x86/x86_64.
+ *#*
+ *#* Revision 1.9  2006/02/23 09:08:43  bernie
+ *#* Add note for a frequently reported non-bug.
+ *#*
  *#* Revision 1.8  2006/02/10 12:37:45  bernie
  *#* Add support for ARM on IAR.
  *#*
@@ -70,7 +76,7 @@
  * \{
  */
 #define CPU_BIG_ENDIAN    0x1234
-#define CPU_LITTLE_ENDIAN 0x3412
+#define CPU_LITTLE_ENDIAN 0x3412 /* Look twice, pal. This is not a bug. */
 /*\}*/
 
 /*! Macro to include cpu-specific versions of the headers. */
 
 
        #define CPU_REGS_CNT            7
+       #define CPU_SAVED_REGS_CNT      7
        #define CPU_STACK_GROWS_UPWARD  0
        #define CPU_SP_ON_EMPTY_SLOT    0
        #define CPU_BYTE_ORDER          CPU_LITTLE_ENDIAN
 
 #else
        #define CPU_PUSH_CALL_CONTEXT(sp, func) \
-               CPU_PUSH_WORD((sp), (func))
+               CPU_PUSH_WORD((sp), (cpustack_t)(func))
 #endif