diff --git a/sys/arm64/arm64/locore.S b/sys/arm64/arm64/locore.S index c9cf25aae37f..534c89ac32dc 100644 --- a/sys/arm64/arm64/locore.S +++ b/sys/arm64/arm64/locore.S @@ -455,7 +455,7 @@ common: /* Create the kernel space L2 table */ mov x6, x26 mov x7, #(ATTR_S1_IDX(VM_MEMATTR_WRITE_BACK)) - mov x8, #(KERNBASE & L2_BLOCK_MASK) + mov x8, #(KERNBASE) mov x9, x28 bl build_l2_block_pagetable diff --git a/sys/arm64/include/pte.h b/sys/arm64/include/pte.h index 6b816464c167..3ce11133e2ef 100644 --- a/sys/arm64/include/pte.h +++ b/sys/arm64/include/pte.h @@ -134,8 +134,6 @@ typedef uint64_t pt_entry_t; /* page table entry */ #define L2_BLOCK L1_BLOCK #define L2_TABLE L1_TABLE -#define L2_BLOCK_MASK UINT64_C(0xffffffffffe00000) - /* Level 3 table, 4KiB per entry */ #define L3_SHIFT 12 #define L3_SIZE (1 << L3_SHIFT)