From 6d5f48e1549c2f0d83810f7859fd01bbc2d968f3 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 6 May 2025 17:27:51 +0200 Subject: [PATCH] handle panic now triggers a panic --- interrupt/handlers.cc | 4 +++- interrupt/handlers.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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);