From 56b59151d5feab8b9ed50371ca2cc13480be265b Mon Sep 17 00:00:00 2001 From: Per Fogelstrom Date: Wed, 22 Jan 1997 22:41:16 +0000 Subject: pmap enter fixes for I/O mapping. --- sys/arch/arc/include/pte.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/arch/arc/include') 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) -- cgit v1.2.3