pmap: fix PFN() not clearing upper PTE control bits

This commit is contained in:
2026-04-01 18:20:50 +01:00
parent db1a200eea
commit 7bcd1577be
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@
#define PTR_TO_ENTRY(x) (((x) & ~VM_PAGE_MASK) | PTE_PRESENT | PTE_RW | PTE_USR) #define PTR_TO_ENTRY(x) (((x) & ~VM_PAGE_MASK) | PTE_PRESENT | PTE_RW | PTE_USR)
#define ENTRY_TO_PTR(x) ((x) & ~VM_PAGE_MASK) #define ENTRY_TO_PTR(x) ((x) & ~VM_PAGE_MASK)
#define PFN(x) ((x) >> VM_PAGE_SHIFT) #define PFN(x) (((x) >> VM_PAGE_SHIFT) & 0xFFFFFFFFFF)
static int can_use_gbpages = 0; static int can_use_gbpages = 0;
static pmap_t kernel_pmap; static pmap_t kernel_pmap;
-1
View File
@@ -9,7 +9,6 @@
#include <stddef.h> #include <stddef.h>
#define PMAP_INVALID ML_PMAP_INVALID #define PMAP_INVALID ML_PMAP_INVALID
#define PFN(x) ((x) >> VM_PAGE_SHIFT)
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {