From 5c59626c90761d6383ad585acdcfd0310d5a5687 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 14 Sep 2025 21:34:29 -0400 Subject: kern: Add sys/mman.h and generic prot flags Signed-off-by: Ian Moffett --- src/sys/include/arch/amd64/mmu.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/sys/include/arch/amd64/mmu.h') diff --git a/src/sys/include/arch/amd64/mmu.h b/src/sys/include/arch/amd64/mmu.h index 0cecd68..0edd0bc 100644 --- a/src/sys/include/arch/amd64/mmu.h +++ b/src/sys/include/arch/amd64/mmu.h @@ -36,6 +36,7 @@ #define _MACHINE_MMU_H_ #include +#include #include #include @@ -43,10 +44,9 @@ * Standard memory protection flags */ #define MMU_PROT_NONE 0x0 /* Nothing */ -#define MMU_PROT_READ BIT(0) /* Readable */ -#define MMU_PROT_WRITE BIT(1) /* Writable */ -#define MMU_PROT_EXEC BIT(2) /* Executable */ - +#define MMU_PROT_READ PROT_READ /* Readable */ +#define MMU_PROT_WRITE PROT_WRITE /* Writable */ +#define MMU_PROT_EXEC PROT_EXEC /* Executable */ /* * This will represent a virtual to -- cgit v1.2.3