Remove invisible walls [jawa]
#2
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?
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)