Use alternate stack for the segfault handler too

This commit is contained in:
Gabriel A 2023-07-12 16:16:40 -03:00 committed by Emmanuel Hansen
parent 63b2e587e4
commit f2a0031f26
5 changed files with 22 additions and 111 deletions

View file

@ -117,9 +117,8 @@ namespace Ryujinx.Cpu.Nce
int tableIndex = NceThreadTable.Register(_getTpidrEl0(), nec.NativeContextPtr);
nec.SetStartAddress(address);
nec.RegisterAlternateStack();
_threadStart(nec.NativeContextPtr);
nec.UnregisterAlternateStack();
nec.Exit();
NceThreadTable.Unregister(tableIndex);
}