Move code to 0x00808000

This commit is contained in:
Maschell 2022-01-21 18:50:57 +01:00
parent fb32aec5b7
commit 923b43072c
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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");
ASSERT((SIZEOF(.text) + SIZEOF(.data)) < (0x00900000 - 0x00808000), "elf is too big");