diff --git a/interrupt/handlers.cc b/interrupt/handlers.cc index 2e33f81..46f47b5 100644 --- a/interrupt/handlers.cc +++ b/interrupt/handlers.cc @@ -68,7 +68,9 @@ enum PAGE_FAULT_ERROR { void handle_keyboard() {} [[gnu::interrupt]] void handle_panic(InterruptContext *context) { - (void)context; + DBG << "Generic KernelPanic triggered"<< endl; + printContext(context); + kernelpanic("Generic Panic Triggerd"); } [[gnu::interrupt]] void handle_timer(InterruptContext *context) { diff --git a/interrupt/handlers.h b/interrupt/handlers.h index 01cb9af..caa5e93 100644 --- a/interrupt/handlers.h +++ b/interrupt/handlers.h @@ -82,7 +82,7 @@ void handle_keyboard(); /*! \brief handle_panic * - * \todo(12) Trigger a kernel panic + * \todo Trigger a kernel panic */ [[gnu::interrupt]] void handle_panic(InterruptContext *context);