From 363305510cfc7c26d9e84064ddb57c349fe20fd3 Mon Sep 17 00:00:00 2001 From: David Given Date: Mon, 19 Oct 2015 23:27:39 +0200 Subject: [PATCH] Figure out the proper magic numbers for the header. --- Kernel/cpu-msp430x/cpu.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 -- 2.34.1