aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-01-12 14:13:19 -0500
committerIan Moffett <ian@osmora.org>2024-01-12 14:13:19 -0500
commit3438080f00d3c82b8a9776bcf725ebbbce677b35 (patch)
tree55a3e825c408289018cc7d20cdcf835a80084b3a
parenteec633d16fe2ce6e740c1848209ebb8b6d9b60bd (diff)
kernel/amd64: pmap: Document PTE flags further
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--sys/arch/amd64/amd64/pmap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/arch/amd64/amd64/pmap.c b/sys/arch/amd64/amd64/pmap.c
index 3cae745..cc9c2e8 100644
--- a/sys/arch/amd64/amd64/pmap.c
+++ b/sys/arch/amd64/amd64/pmap.c
@@ -33,6 +33,11 @@
#include <machine/asm/tlb.h>
#include <assert.h>
+/*
+ * Page-Table Entry (PTE) flags
+ *
+ * See Intel SDM Vol 3A, Section 4.5, Table 4-19
+ */
#define PTE_ADDR_MASK 0x000FFFFFFFFFF000
#define PTE_P __BIT(0) /* Present */
#define PTE_RW __BIT(1) /* Writable */