aa64: finalise context switch, page fault handler and syscall
[lunaix-os.git] / lunaix-os / arch / aarch64 / includes / asm / aa64_mmu.h
index 9f5c914cca0772cf82814c8addd748995afbef80..5bb176b2b54ed02d7d79ca9de1c3428aba44a10c 100644 (file)
@@ -2,6 +2,7 @@
 #define __LUNAIX_AA64_MMU_H
 
 #include "aa64_asm.h"
+#include <lunaix/bits.h>
 
 #if    defined(CONFIG_AA64_PAGE_GRAN_4K)
 #define _MMU_TG    0b01
@@ -47,4 +48,8 @@
 #define TCR_EPD0            (1UL << 7)
 #define TCR_A1              (1UL << 22)
 
+#define TTBR_ASID           BITFIELD(63, 48)
+#define TTBR_BADDR          BITFIELD(47, 1)
+#define TTBR_CnP            BITFLAG(0)
+
 #endif /* __LUNAIX_AA64_MMU_H */