summaryrefslogtreecommitdiff
path: root/src/nw4r/db/db_exception.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/nw4r/db/db_exception.cpp')
-rw-r--r--src/nw4r/db/db_exception.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/nw4r/db/db_exception.cpp b/src/nw4r/db/db_exception.cpp
index 700e93ec..29b575fb 100644
--- a/src/nw4r/db/db_exception.cpp
+++ b/src/nw4r/db/db_exception.cpp
@@ -74,8 +74,6 @@ void Exception_Init() {
}
extern "C" u32 PPCMfmsr();
extern "C" void PPCMtmsr(u32);
-extern "C" void OSFillFPUContext(OSContext *ctx);
-extern "C" void fn_803AA2E0(u32, u32, u32, u32);
static void DumpException_(const ExceptionCallbackParam *);
@@ -85,10 +83,10 @@ void ErrorHandler_(u16 error, OSContext *ctx, u32 dsisr, u32 dar) {
OSFillFPUContext(ctx);
OSSetErrorHandler(error, nullptr);
if (error == 0xf) {
- fn_803AA2E0(0, 0, 0, 3);
- fn_803AA2E0(1, 0, 0, 3);
- fn_803AA2E0(2, 0, 0, 3);
- fn_803AA2E0(3, 0, 0, 3);
+ OSProtectRange(OS_PROTECT_CHAN0, 0, 0, OS_PROTECT_CONTROL_RDWR);
+ OSProtectRange(OS_PROTECT_CHAN1, 0, 0, OS_PROTECT_CONTROL_RDWR);
+ OSProtectRange(OS_PROTECT_CHAN2, 0, 0, OS_PROTECT_CONTROL_RDWR);
+ OSProtectRange(OS_PROTECT_CHAN3, 0, 0, OS_PROTECT_CONTROL_RDWR);
}
ExceptionCallbackParam param;