From 3438080f00d3c82b8a9776bcf725ebbbce677b35 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 12 Jan 2024 14:13:19 -0500 Subject: kernel/amd64: pmap: Document PTE flags further Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/pmap.c | 5 +++++ 1 file changed, 5 insertions(+) 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 #include +/* + * 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 */ -- cgit v1.2.3