From f3714b83c835227325062bcc66836e016de73234 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 16 Jul 2023 21:43:07 -0300 Subject: [PATCH] x86_64 mmu: cache flags --- kernel-src/include/x86-64/arch/mmu.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel-src/include/x86-64/arch/mmu.h b/kernel-src/include/x86-64/arch/mmu.h index 7957ae4c..de0bddf5 100644 --- a/kernel-src/include/x86-64/arch/mmu.h +++ b/kernel-src/include/x86-64/arch/mmu.h @@ -16,6 +16,10 @@ #define ARCH_MMU_FLAGS_USER (uint64_t)4 #define ARCH_MMU_FLAGS_NOEXEC ((uint64_t)1 << 63) +#define ARCH_MMU_FLAGS_WB 0 +#define ARCH_MMU_FLAGS_WT (1 << 3) +#define ARCH_MMU_FLAGS_UC (1 << 4) + typedef uint64_t mmuflags_t; typedef uint64_t * pagetableptr_t; // physical address