X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=cfg%2Fcpu.h;h=cfc2316e801935eb58f5ba3e12df5febcff9b255;hb=4144653aea67c800a8219abd3b36e27ae6ab1bd3;hp=2962d88412088455c8b72dcfffa08cb76b051922;hpb=e5b04dc12f28c225dfcc92931bed4598fcf4b639;p=bertos.git diff --git a/cfg/cpu.h b/cfg/cpu.h index 2962d884..cfc2316e 100755 --- a/cfg/cpu.h +++ b/cfg/cpu.h @@ -17,6 +17,12 @@ /*#* *#* $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. */ @@ -112,6 +118,7 @@ #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 @@ -443,7 +450,7 @@ #else #define CPU_PUSH_CALL_CONTEXT(sp, func) \ - CPU_PUSH_WORD((sp), (func)) + CPU_PUSH_WORD((sp), (cpustack_t)(func)) #endif