From 923b43072c017aa82558330fdfbc7875e4744fcb Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 21 Jan 2022 18:50:57 +0100 Subject: [PATCH] Move code to 0x00808000 --- src/kernel_asm.S | 2 +- src/link.ld | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kernel_asm.S b/src/kernel_asm.S index 2daa1c2..9a3c338 100644 --- a/src/kernel_asm.S +++ b/src/kernel_asm.S @@ -40,7 +40,7 @@ SaveAndResetDataBATs_And_SRs_hook: #define BAT_SET_NOP_ADDR_8 0xFFEE11C4 #define BAT_SET_NOP_ADDR_9 0xFFEE11C8 -#define BAT_SETUP_HOOK_ENTRY 0x00900000 +#define BAT_SETUP_HOOK_ENTRY 0x00808000 #define BAT4U_VAL 0x008000FF diff --git a/src/link.ld b/src/link.ld index b19f326..3624909 100644 --- a/src/link.ld +++ b/src/link.ld @@ -3,7 +3,7 @@ OUTPUT(payload.elf); ENTRY(_start); SECTIONS { - . = 0x00900000; + . = 0x00808000; .text : { *(.kernel_code*); *(.text*); @@ -23,4 +23,4 @@ SECTIONS { } } -ASSERT((SIZEOF(.text) + SIZEOF(.data)) < 0x100000, "elf is too big"); \ No newline at end of file +ASSERT((SIZEOF(.text) + SIZEOF(.data)) < (0x00900000 - 0x00808000), "elf is too big"); \ No newline at end of file