From 9837a8457f854f696653d6203b58bc45ac85f1a5 Mon Sep 17 00:00:00 2001 From: Maschell Date: Thu, 30 Dec 2021 15:26:06 +0100 Subject: [PATCH] Move the code to a different memory location to not interfere with the HBL sd_loader --- src/kernel_asm.S | 2 +- src/link.ld | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel_asm.S b/src/kernel_asm.S index ab2c207..2daa1c2 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 0x00800000 +#define BAT_SETUP_HOOK_ENTRY 0x00900000 #define BAT4U_VAL 0x008000FF diff --git a/src/link.ld b/src/link.ld index bb4079d..b19f326 100644 --- a/src/link.ld +++ b/src/link.ld @@ -3,7 +3,7 @@ OUTPUT(payload.elf); ENTRY(_start); SECTIONS { - . = 0x00800000; + . = 0x00900000; .text : { *(.kernel_code*); *(.text*);