From 0296b560b84a270a1da2536b62f4aeea1cd2d80e Mon Sep 17 00:00:00 2001 From: pefo Date: Wed, 22 Jan 1997 22:41:15 +0000 Subject: [PATCH] pmap enter fixes for I/O mapping. --- sys/arch/arc/include/pte.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/arch/arc/include/pte.h b/sys/arch/arc/include/pte.h index 5ef6c626fd4..6e2fdabbbd9 100644 --- a/sys/arch/arc/include/pte.h +++ b/sys/arch/arc/include/pte.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pte.h,v 1.2 1996/09/04 21:18:24 pefo Exp $ */ +/* $OpenBSD: pte.h,v 1.3 1997/01/22 22:41:15 pefo Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -105,6 +105,7 @@ typedef union pt_entry { #define PG_IOPAGE (PG_G | PG_V | PG_M | PG_UNCACHED) #define PG_FRAME 0x3fffffc0 #define PG_SHIFT 6 +#define pfn_is_ext(x) ((x) & 0x3c000000) #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) -- 2.20.1