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