From: David Given Date: Mon, 19 Oct 2015 21:27:39 +0000 (+0200) Subject: Figure out the proper magic numbers for the header. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=363305510cfc7c26d9e84064ddb57c349fe20fd3;p=FUZIX.git Figure out the proper magic numbers for the header. --- diff --git a/Kernel/cpu-msp430x/cpu.h b/Kernel/cpu-msp430x/cpu.h index cf192e7e..b5856fbc 100644 --- a/Kernel/cpu-msp430x/cpu.h +++ b/Kernel/cpu-msp430x/cpu.h @@ -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