From dcc93ce60e4c4fed9d21aefb310bca64476dd34f Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 26 Apr 2019 07:32:23 -0700 Subject: [PATCH] strat: disable exception handlers when creport would be better --- stratosphere/dmnt/source/dmnt_main.cpp | 8 -------- stratosphere/ro/source/ro_main.cpp | 4 ---- 2 files changed, 12 deletions(-) diff --git a/stratosphere/dmnt/source/dmnt_main.cpp b/stratosphere/dmnt/source/dmnt_main.cpp index ce140113e..d63c466a2 100644 --- a/stratosphere/dmnt/source/dmnt_main.cpp +++ b/stratosphere/dmnt/source/dmnt_main.cpp @@ -42,15 +42,7 @@ extern "C" { void __appExit(void); /* Exception handling. */ - alignas(16) u8 __nx_exception_stack[0x1000]; - u64 __nx_exception_stack_size = sizeof(__nx_exception_stack); - void __libnx_exception_handler(ThreadExceptionDump *ctx); u64 __stratosphere_title_id = TitleId_Dmnt; - void __libstratosphere_exception_handler(AtmosphereFatalErrorContext *ctx); -} - -void __libnx_exception_handler(ThreadExceptionDump *ctx) { - StratosphereCrashHandler(ctx); } diff --git a/stratosphere/ro/source/ro_main.cpp b/stratosphere/ro/source/ro_main.cpp index 0f260ef73..b77c4b0a1 100644 --- a/stratosphere/ro/source/ro_main.cpp +++ b/stratosphere/ro/source/ro_main.cpp @@ -41,11 +41,7 @@ extern "C" { void __appExit(void); /* Exception handling. */ - alignas(16) u8 __nx_exception_stack[0x1000]; - u64 __nx_exception_stack_size = sizeof(__nx_exception_stack); - void __libnx_exception_handler(ThreadExceptionDump *ctx); u64 __stratosphere_title_id = TitleId_Ro; - void __libstratosphere_exception_handler(AtmosphereFatalErrorContext *ctx); } void __libnx_exception_handler(ThreadExceptionDump *ctx) {