mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
exo2: correct exception stack calc (fixes smc cpu off)
This commit is contained in:
parent
068c25ce66
commit
e1835d9ba2
2 changed files with 1 additions and 11 deletions
|
@ -122,7 +122,7 @@ _ZN3ams6secmon28GetCoreExceptionStackVirtualEv:
|
|||
cmp x0, #2
|
||||
b.eq 2f
|
||||
|
||||
cmp x1, #1
|
||||
cmp x0, #1
|
||||
b.eq 1f
|
||||
|
||||
/* cmp x0, #0 */
|
||||
|
|
|
@ -274,16 +274,6 @@ namespace ams::secmon::smc {
|
|||
DebugLog(args);
|
||||
}
|
||||
|
||||
if (args.r[0] == 0xC4000001) {
|
||||
*(volatile u32 *)(MemoryRegionVirtualDebug.GetAddress()) = 0xFFFFFFFF;
|
||||
*(volatile u32 *)(MemoryRegionVirtualDebug.GetAddress() + 0x10) = static_cast<u32>(hw::GetCurrentCoreId());
|
||||
|
||||
*(volatile u32 *)(MemoryRegionVirtualDevicePmc.GetAddress() + 0x50) = 0x02;
|
||||
*(volatile u32 *)(MemoryRegionVirtualDevicePmc.GetAddress() + 0x00) = 0x10;
|
||||
|
||||
util::WaitMicroSeconds(1000);
|
||||
}
|
||||
|
||||
/* Get the handler info. */
|
||||
const auto &info = GetHandlerInfo(table, args.r[0]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue