cpu-msp340: push bits back into the CPU header instead
authorAlan Cox <alan@linux.intel.com>
Mon, 19 Oct 2015 20:53:20 +0000 (21:53 +0100)
committerAlan Cox <alan@linux.intel.com>
Mon, 19 Oct 2015 20:53:20 +0000 (21:53 +0100)
Kernel/cpu-msp430x/cpu.h

index 6fbfdef..e44fa28 100644 (file)
@@ -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)
+