1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-22 01:46:39 +00:00

hekate: use IRAM for stack

This commit is contained in:
CTCaer 2024-06-02 07:04:17 +03:00
parent 84c5439c70
commit d933aa80f7
2 changed files with 5 additions and 4 deletions

View file

@ -1487,10 +1487,10 @@ void ipl_main()
// Do initial HW configuration. This is compatible with consecutive reruns without a reset.
hw_init();
// Pivot the stack so we have enough space.
pivot_stack(IPL_STACK_TOP);
// Pivot the stack under IPL. (Only max 4KB is needed).
pivot_stack(IPL_LOAD_ADDR);
// Tegra/Horizon configuration goes to 0x80000000+, package2 goes to 0xA9800000, we place our heap in between.
// Place heap at a place outside of L4T/HOS configuration and binaries.
heap_init((void *)IPL_HEAP_START);
#ifdef DEBUG_UART_PORT

View file

@ -60,7 +60,8 @@ _reloc_ipl:
BX R3
_real_start:
/* Initially, we place our stack in IRAM but will move it to SDRAM later. */
/* Initially, we place our stack under relocator but will move it to under the payload. */
/* This depends on application scope. */
LDR SP, =0x4003FF00
LDR R0, =__bss_start
EOR R1, R1, R1