Remove invisible walls [jawa]
#6
(11-20-2022, 01:07 PM)Seeky Wrote: You can get weird bugs by manually disabling interrupts if a context switch happens after your mfmsr and before your mtmsr, and the msr is changed on another thread. OSLoadContext has special code to prevent this issue in OSDisableInterrupts (moves pc back to the start of the function if it was interrupted before the mtmsr), so really you should always call the actual function for this

Also, do you actually need interrupts disabled here?

Dolphin would sometimes crash. Maybe it's just an issue on my machine, but i included it just in case.
Reply


Messages In This Thread
Remove invisible walls [jawa] - by jawa - 11-19-2022, 07:37 PM
RE: Remove invisible walls [jawa] - by Seeky - 11-20-2022, 01:07 PM
RE: Remove invisible walls [jawa] - by jawa - 11-21-2022, 02:53 PM
RE: Remove invisible walls [jawa] - by Vega - 11-20-2022, 02:25 PM
RE: Remove invisible walls [jawa] - by Seeky - 11-20-2022, 08:00 PM
RE: Remove invisible walls [jawa] - by Vega - 11-21-2022, 02:17 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)