pmap: fix PFN() not clearing upper PTE control bits
This commit is contained in:
+1
-1
@@ -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;
|
||||||
|
|||||||
@@ -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" {
|
||||||
|
|||||||
Reference in New Issue
Block a user