kill app on pagefault

This commit is contained in:
2026-02-22 02:25:49 +01:00
parent b9637ce86a
commit 20345264aa
3 changed files with 8 additions and 1 deletions

View File

@@ -46,13 +46,17 @@ static void printContext(const InterruptContext *context) {
kernelpanic("General protection fault!");
}
#include "syscall/skeleton.h"
[[gnu::interrupt]] static void handle_page_fault(InterruptContext *context,
uint64_t error) {
DBG << "Page fault encountered at linear address " << hex
<< Core::CR<2>::read() << endl
<< PageFaultError(error) << endl;
printContext(context);
kernelpanic("Page fault!");
Syscall::Skeleton::exit(Guard::enter().vault());
//kernelpanic("Page fault!");
}
/*! \brief Assembly interrupt handler for the keyboard.