summaryrefslogtreecommitdiff
path: root/sys/arch/arc/include/pte.h
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1996-09-04 21:18:26 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1996-09-04 21:18:26 +0000
commit36fe465c85d14950c37b7002fa52b0af179b0bc0 (patch)
tree4826948ec80f3cfe8a40bc2d5420b2fd72fbb2d4 /sys/arch/arc/include/pte.h
parentc3c8d76890b592bf5acc1a9b7faeabd9b829dd71 (diff)
Some changes for new arc boxes
Diffstat (limited to 'sys/arch/arc/include/pte.h')
-rw-r--r--sys/arch/arc/include/pte.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/arc/include/pte.h b/sys/arch/arc/include/pte.h
index a5e6ee48054..5ef6c626fd4 100644
--- a/sys/arch/arc/include/pte.h
+++ b/sys/arch/arc/include/pte.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pte.h,v 1.1 1996/06/24 09:07:18 pefo Exp $ */
+/* $OpenBSD: pte.h,v 1.2 1996/09/04 21:18:24 pefo Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -106,6 +106,7 @@ typedef union pt_entry {
#define PG_FRAME 0x3fffffc0
#define PG_SHIFT 6
#define vad_to_pfn(x) (((unsigned)(x) >> PG_SHIFT) & PG_FRAME)
+#define vad_to_pfn64(x) (((quad_t)(x) >> PG_SHIFT) & PG_FRAME)
#define pfn_to_vad(x) (((x) & PG_FRAME) << PG_SHIFT)
#define vad_to_vpn(x) ((unsigned)(x) & PG_SVPN)
#define vpn_to_vad(x) ((x) & PG_SVPN)