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

@@ -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();