Figure out the proper magic numbers for the header.
authorDavid Given <dg@cowlark.com>
Mon, 19 Oct 2015 21:27:39 +0000 (23:27 +0200)
committerDavid Given <dg@cowlark.com>
Mon, 19 Oct 2015 21:27:39 +0000 (23:27 +0200)
Kernel/cpu-msp430x/cpu.h

index cf192e7..b5856fb 100644 (file)
@@ -117,10 +117,9 @@ 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 EMAGIC_2 (*p)
+/* jmp over the Fuzix header. Will need updating if the header size changes */
+#define EMAGIC   0x08
+#define EMAGIC_2 0x3c
 
 /* To save space, queues go in high memory. */
 #define CONFIG_INDIRECT_QUEUES