exo2: correct exception stack calc (fixes smc cpu off)

This commit is contained in:
Michael Scire authored and SciresM committed 2020-06-14 22:07:45 -07:00
1 parent 068c25ce66
commit e1835d9ba2
2 files changed
+1 -11

No files matched your search

@@ -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]);