mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-28 05:34:11 -04:00
kern: swap tpidr_el1/cntv_cval_el0 as scratch vs exception stack
This commit is contained in:
parent
2f930c2d5f
commit
c216f92a91
7 changed files with 34 additions and 28 deletions
|
@ -89,7 +89,8 @@ _main:
|
|||
bl _ZN3ams4kern4init3Elf18CallInitArrayFuncsEmm
|
||||
|
||||
/* Setup system registers, for detection of errors during init later. */
|
||||
msr tpidr_el1, xzr /* Clear TPIDR_EL1 */
|
||||
msr tpidr_el1, xzr
|
||||
msr cntv_cval_el0, xzr
|
||||
adr x0, __external_references
|
||||
adr x1, _start
|
||||
ldr x0, [x0, #0x30]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue