exo2: reorganize to save >0x300 bytes and 0x100 of stack in main

This commit is contained in:
Michael Scire
2020-05-13 18:10:54 -07:00
committed by SciresM
parent ad664daea5
commit b7ff9e8fcc
10 changed files with 146 additions and 135 deletions

View File

@@ -38,6 +38,10 @@ _ZN3ams6secmon5StartEv:
ldr x20, =0x1F01F9000
mov sp, x20
/* Initialize the random cache. */
/* NOTE: Nintendo does this much earlier, but we reuse volatile space. */
bl _ZN3ams6secmon3smc15FillRandomCacheEv
/* Unmap the boot code region. */
bl _ZN3ams6secmon13UnmapBootCodeEv