diff options
author | Timon Kruiper <timonkruiper@gmail.com> | 2023-01-08 17:42:07 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-01-27 11:41:43 +0100 |
commit | 55d756a81383a3c8cd0b938bef5c13f647e4f6df (patch) | |
tree | 1cd755d5fe40c46a375957b067bef4711481cd24 /Kernel/Arch/PageFault.h | |
parent | a532d28905c3e8128255b569488fe7079d993236 (diff) | |
download | serenity-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.h | 3 |
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, |