Add custom panic driver
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user