diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2014-12-22 23:59:44 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2014-12-22 23:59:44 +0000 |
commit | 2ecc7ff27cd480bdb08317e7235eaaaf8cc27d23 (patch) | |
tree | 2047d54d16e419ac7424eafb14311aa65f22d334 /sys/arch/i386/include/pmap.h | |
parent | 1fbc1dad24b26fc3e0c14ee95e70385aaeb5e38c (diff) |
Move PD_MASK, PT_MASK and a couple macros into pmap.c. The only other
user of these was hibernate, which now gets its own PD_MASK (since
the resume time PD_MASK is essentially disjoint from the runtime
PD_MASK). No functional change, just moving the deck chairs around in
preparation for an upcoming change.
ok deraadt
Diffstat (limited to 'sys/arch/i386/include/pmap.h')
-rw-r--r-- | sys/arch/i386/include/pmap.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/arch/i386/include/pmap.h b/sys/arch/i386/include/pmap.h index 0285b7def44..751f0799a90 100644 --- a/sys/arch/i386/include/pmap.h +++ b/sys/arch/i386/include/pmap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.h,v 1.67 2014/12/02 18:13:10 tedu Exp $ */ +/* $OpenBSD: pmap.h,v 1.68 2014/12/22 23:59:43 mlarkin Exp $ */ /* $NetBSD: pmap.h,v 1.44 2000/04/24 17:18:18 thorpej Exp $ */ /* @@ -196,12 +196,6 @@ ((unsigned)(VA) & ~PG_FRAME)) /* - * pdei/ptei: generate index into PDP/PTP from a VA - */ -#define pdei(VA) (((VA) & PD_MASK) >> PDSHIFT) -#define ptei(VA) (((VA) & PT_MASK) >> PAGE_SHIFT) - -/* * PTP macros: * A PTP's index is the PD index of the PDE that points to it. * A PTP's offset is the byte-offset in the PTE space that this PTP is at. |