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
commit 55d756a813
Notes: sideshowbarker 2024-07-17 11:33:34 +09:00
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,