mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-06 17:41:24 -04:00
Add custom panic driver
This commit is contained in:
parent
c820375a86
commit
ec7e0d923d
14 changed files with 298 additions and 57 deletions
|
@ -4,6 +4,7 @@
|
|||
#include <errno.h>
|
||||
#include <malloc.h>
|
||||
#include "utils.h"
|
||||
#include "panic.h"
|
||||
#include "loader.h"
|
||||
#include "chainloader.h"
|
||||
#include "stage2.h"
|
||||
|
@ -20,6 +21,9 @@ static stage2_args_t *g_stage2_args;
|
|||
static bool g_do_nxboot;
|
||||
|
||||
static void setup_env(void) {
|
||||
/* Check for panics. */
|
||||
check_and_display_panic();
|
||||
|
||||
/* Set the console up. */
|
||||
if (console_init() == -1) {
|
||||
generic_panic();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue