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

This commit is contained in:
Michael Scire 2020-06-07 16:46:17 -07:00 committed by SciresM
parent 068c25ce66
commit e1835d9ba2
2 changed files with 1 additions and 11 deletions

View file

@ -122,7 +122,7 @@ _ZN3ams6secmon28GetCoreExceptionStackVirtualEv:
cmp x0, #2
b.eq 2f
cmp x1, #1
cmp x0, #1
b.eq 1f
/* cmp x0, #0 */

View file

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