-/* $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.
#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)