diff options
Diffstat (limited to 'include/arch/x86_64/arch.h')
-rw-r--r-- | include/arch/x86_64/arch.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/arch/x86_64/arch.h b/include/arch/x86_64/arch.h index c17721d..a7ba776 100644 --- a/include/arch/x86_64/arch.h +++ b/include/arch/x86_64/arch.h @@ -1,6 +1,7 @@ #ifndef ARCH_H_ #define ARCH_H_ +#include <stdint.h> #include "fake_env.h" #define ARCH_PC @@ -30,8 +31,8 @@ // Pretend there's a data segement at the start of SRAM1 for more accurate // testing. -#define GHOST_DATA_SEGMENT_SIZE 1234 -#define DATA_SEGMENT_START (*((uint8_t*)SRAM1_BASE)) -#define DATA_SEGMENT_STOP (*(((uint8_t*)SRAM1_BASE) + GHOST_DATA_SEGMENT_SIZE)) +#define GHOST_DATA_SEGMENT_SIZE 1200 +#define HEAP_START (*(((unsigned char*)SRAM1_BASE) + GHOST_DATA_SEGMENT_SIZE)) +#define HEAP_STOP (*(&HEAP_START + 16384 - GHOST_DATA_SEGMENT_SIZE)) #endif /* ARCH_H_ */ |