From: Alan Cox Date: Mon, 19 Oct 2015 20:53:20 +0000 (+0100) Subject: cpu-msp340: push bits back into the CPU header instead X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=1c6f660ff60894a8c5201375deca71d95a49b4b7;p=FUZIX.git cpu-msp340: push bits back into the CPU header instead --- diff --git a/Kernel/cpu-msp430x/cpu.h b/Kernel/cpu-msp430x/cpu.h index 6fbfdef7..e44fa289 100644 --- a/Kernel/cpu-msp430x/cpu.h +++ b/Kernel/cpu-msp430x/cpu.h @@ -60,7 +60,6 @@ static inline void irqrestore(irqflags_t flags) extern irqflags_t di(void); extern void irqrestore(irqflags_t f); -#undef EMAGIC /* No executable header for MSP430X */ /* Allow a minimum of 512 bytes gap between stack and top of allocations */ #define brk_limit() (udata.u_syscall_sp - 512) @@ -118,3 +117,8 @@ typedef union { /* this structure is endian dependent */ #define VIDEO #define DISCARD +/* Really we should check for the jmp I imagine but gcc will figure the below + out for us and keep this oddness out of the core code ! */ +#define EMAGIC (*p) +#define EMAGIC2 (*p) +