all of PTE_FLAGS
This commit is contained in:
parent
036b5edf12
commit
2df42355f7
3 changed files with 5 additions and 5 deletions
|
|
@ -338,7 +338,7 @@ sfence_vma()
|
|||
|
||||
#define PTE2PA(pte) (((pte) >> 10) << 12)
|
||||
|
||||
#define PTE_FLAGS(pte) ((pte) & (PTE_V|PTE_R|PTE_W|PTE_X|PTE_U))
|
||||
#define PTE_FLAGS(pte) ((pte) & 0x3FF)
|
||||
|
||||
// extract the three 9-bit page table indices from a virtual address.
|
||||
#define PXMASK 0x1FF // 9 bits
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue