Add custom panic driver

This commit is contained in:
TuxSH
2018-05-20 14:11:46 +02:00
parent c820375a86
commit ec7e0d923d
14 changed files with 298 additions and 57 deletions

View File

@@ -1,4 +1,5 @@
#include "utils.h"
#include "panic.h"
#include "hwinit.h"
#include "fuse.h"
#include "se.h"
@@ -67,6 +68,9 @@ static void setup_env(void) {
/* TODO: What can be stripped out to make this minimal? */
nx_hwinit();
/* Check for panics. */
check_and_display_panic();
/* Try to load the SBK into the security engine, if possible. */
/* TODO: Should this be done later? */
load_sbk();