diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 1997-01-22 22:41:16 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 1997-01-22 22:41:16 +0000 |
commit | 56b59151d5feab8b9ed50371ca2cc13480be265b (patch) | |
tree | 661d280b65d83b47aa12011bc095b9b1dafae4dd /sys/arch/arc/include | |
parent | b547386a09a00eccdef6b937d99add2e31ff8334 (diff) |
pmap enter fixes for I/O mapping.
Diffstat (limited to 'sys/arch/arc/include')
-rw-r--r-- | sys/arch/arc/include/pte.h | 3 |
1 files changed, 2 insertions, 1 deletions
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) |