1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:17:34 +00:00

Kernel/aarch64: Implement initial page fault handling

The shared code is moved to a common PageFault.cpp file.
This commit is contained in:
Timon Kruiper 2023-01-08 17:42:07 +01:00 committed by Andreas Kling
parent a532d28905
commit 55d756a813
5 changed files with 195 additions and 133 deletions

View file

@ -8,6 +8,7 @@
#include <AK/Platform.h>
#include <AK/Types.h>
#include <Kernel/Arch/RegisterState.h>
#include <Kernel/ExecutionMode.h>
#include <Kernel/VirtualAddress.h>
@ -44,6 +45,8 @@ public:
{
}
void handle(RegisterState& regs);
enum class Type {
PageNotPresent = PageFaultFlags::NotPresent,
ProtectionViolation = PageFaultFlags::ProtectionViolation,