diff options
Diffstat (limited to 'sys/powerpc/include/pte.h')
-rw-r--r-- | sys/powerpc/include/pte.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/powerpc/include/pte.h b/sys/powerpc/include/pte.h index 7108072..8cbd70b 100644 --- a/sys/powerpc/include/pte.h +++ b/sys/powerpc/include/pte.h @@ -270,6 +270,7 @@ typedef uint64_t pte_t; /* Macro argument must of pte_t type. */ #define PTE_ARPN_SHIFT 12 +#define PTE_FLAGS_MASK 0x00ffffff #define PTE_RPN_FROM_PA(pa) (((pa) & ~PAGE_MASK) << PTE_ARPN_SHIFT) #define PTE_PA(pte) ((vm_paddr_t)(*pte >> PTE_ARPN_SHIFT) & ~PAGE_MASK) #define PTE_ISVALID(pte) ((*pte) & PTE_VALID) |