boot: functional exception handling/rebooting to payload

This commit is contained in:
Michael Scire 2019-05-02 17:55:50 -07:00
parent 9319463a6e
commit 505324f625
4 changed files with 123 additions and 4 deletions
stratosphere/boot/source

View file

@ -24,6 +24,7 @@
#include <stratosphere.hpp>
#include "boot_functions.hpp"
#include "boot_reboot_manager.hpp"
extern "C" {
extern u32 __start__;
@ -50,6 +51,11 @@ void __libnx_exception_handler(ThreadExceptionDump *ctx) {
StratosphereCrashHandler(ctx);
}
void __libstratosphere_exception_handler(AtmosphereFatalErrorContext *ctx) {
/* We're boot sysmodule, so manually reboot to fatal error. */
BootRebootManager::RebootForFatalError(ctx);
}
void __libnx_initheap(void) {
void* addr = nx_inner_heap;
size_t size = nx_inner_heap_size;