diff options
Diffstat (limited to 'i386/intel/pmap.h')
-rw-r--r-- | i386/intel/pmap.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/i386/intel/pmap.h b/i386/intel/pmap.h index e02ad36..11bca80 100644 --- a/i386/intel/pmap.h +++ b/i386/intel/pmap.h @@ -101,6 +101,13 @@ typedef unsigned int pt_entry_t; #endif /* + * Convert linear offset to page directory pointer index + */ +#if PAE +#define lin2pdpnum(a) (((a) >> PDPSHIFT) & PDPMASK) +#endif + +/* * Convert page descriptor index to linear address */ #define pdenum2lin(a) ((vm_offset_t)(a) << PDESHIFT) |