summaryrefslogtreecommitdiff
path: root/Kernel/Arch/PageFault.h
diff options
context:
space:
mode:
authorTimon Kruiper <timonkruiper@gmail.com>2023-01-08 17:42:07 +0100
committerAndreas Kling <kling@serenityos.org>2023-01-27 11:41:43 +0100
commit55d756a81383a3c8cd0b938bef5c13f647e4f6df (patch)
tree1cd755d5fe40c46a375957b067bef4711481cd24 /Kernel/Arch/PageFault.h
parenta532d28905c3e8128255b569488fe7079d993236 (diff)
downloadserenity-55d756a81383a3c8cd0b938bef5c13f647e4f6df.zip
Kernel/aarch64: Implement initial page fault handling
The shared code is moved to a common PageFault.cpp file.
Diffstat (limited to 'Kernel/Arch/PageFault.h')
-rw-r--r--Kernel/Arch/PageFault.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Kernel/Arch/PageFault.h b/Kernel/Arch/PageFault.h
index faa6fc4e1e..27ad0eb49d 100644
--- a/Kernel/Arch/PageFault.h
+++ b/Kernel/Arch/PageFault.h
@@ -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,