mirror of
https://github.com/wiiu-env/CustomRPXLoader.git
synced 2024-11-22 09:59:17 +01:00
Move code to 0x00808000
This commit is contained in:
parent
fb32aec5b7
commit
923b43072c
@ -40,7 +40,7 @@ SaveAndResetDataBATs_And_SRs_hook:
|
|||||||
#define BAT_SET_NOP_ADDR_8 0xFFEE11C4
|
#define BAT_SET_NOP_ADDR_8 0xFFEE11C4
|
||||||
#define BAT_SET_NOP_ADDR_9 0xFFEE11C8
|
#define BAT_SET_NOP_ADDR_9 0xFFEE11C8
|
||||||
|
|
||||||
#define BAT_SETUP_HOOK_ENTRY 0x00900000
|
#define BAT_SETUP_HOOK_ENTRY 0x00808000
|
||||||
|
|
||||||
|
|
||||||
#define BAT4U_VAL 0x008000FF
|
#define BAT4U_VAL 0x008000FF
|
||||||
|
@ -3,7 +3,7 @@ OUTPUT(payload.elf);
|
|||||||
ENTRY(_start);
|
ENTRY(_start);
|
||||||
|
|
||||||
SECTIONS {
|
SECTIONS {
|
||||||
. = 0x00900000;
|
. = 0x00808000;
|
||||||
.text : {
|
.text : {
|
||||||
*(.kernel_code*);
|
*(.kernel_code*);
|
||||||
*(.text*);
|
*(.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");
|
Loading…
Reference in New Issue
Block a user