mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-12 01:30:03 +00:00
Restore clobbered registers before calling SDL_PumpEvents().
This commit is contained in:
parent
df960a814e
commit
a60b0fb78c
@ -1575,15 +1575,6 @@ void sigusr2_handler(int sig, siginfo_t *sip, void *scp)
|
|||||||
{
|
{
|
||||||
machine_regs *r = MACHINE_REGISTERS(scp);
|
machine_regs *r = MACHINE_REGISTERS(scp);
|
||||||
|
|
||||||
#ifdef USE_SDL_VIDEO
|
|
||||||
// We must fill in the events queue in the same thread that did call SDL_SetVideoMode()
|
|
||||||
SDL_PumpEvents();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Do nothing if interrupts are disabled
|
|
||||||
if (*(int32 *)XLM_IRQ_NEST > 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
#ifdef SYSTEM_CLOBBERS_R2
|
#ifdef SYSTEM_CLOBBERS_R2
|
||||||
// Restore pointer to Thread Local Storage
|
// Restore pointer to Thread Local Storage
|
||||||
set_r2(TOC);
|
set_r2(TOC);
|
||||||
@ -1593,6 +1584,15 @@ void sigusr2_handler(int sig, siginfo_t *sip, void *scp)
|
|||||||
set_r13(R13);
|
set_r13(R13);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_SDL_VIDEO
|
||||||
|
// We must fill in the events queue in the same thread that did call SDL_SetVideoMode()
|
||||||
|
SDL_PumpEvents();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Do nothing if interrupts are disabled
|
||||||
|
if (*(int32 *)XLM_IRQ_NEST > 0)
|
||||||
|
return;
|
||||||
|
|
||||||
// Disable MacOS stack sniffer
|
// Disable MacOS stack sniffer
|
||||||
WriteMacInt32(0x110, 0);
|
WriteMacInt32(0x110, 0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user