]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
include/arch/arm/arm64: Add page fault error bits
authorSergiu Moga <sergiu.moga@protonmail.com>
Tue, 18 Apr 2023 11:07:23 +0000 (14:07 +0300)
committerUnikraft <monkey@unikraft.io>
Fri, 11 Aug 2023 10:12:32 +0000 (10:12 +0000)
Define the bits required to tell whether a page fault was generated
due to a read, write or execute action.

Signed-off-by: Sergiu Moga <sergiu.moga@protonmail.com>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #908

arch/arm/arm64/include/uk/asm/paging.h

index e8582cf348fce6228b69087f1fc78c14654ce281..c13e8e9c54ff8c983314251595bf92d0b991e3fd 100644 (file)
@@ -104,6 +104,10 @@ struct ukarch_pagetable {
 #define PAGE_ATTR_SHAREABLE_IS         (1 << PAGE_ATTR_SHAREABLE_SHIFT)
 #define PAGE_ATTR_SHAREABLE_OS         (2 << PAGE_ATTR_SHAREABLE_SHIFT)
 
+/* Page fault error code bits */
+#define ARM64_PF_ESR_WnR               0x0000040UL
+#define ARM64_PF_ESR_ISV               0x1000000UL
+
 #define ARM64_PADDR_BITS               48
 #define ARM64_VADDR_BITS               48