kill app on pagefault
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user