diff --git a/sys/arch/alpha/alpha/pmap.old.c b/sys/arch/alpha/alpha/pmap.old.c index 7dbca90e65b9..ead4f0ffb9b0 100644 --- a/sys/arch/alpha/alpha/pmap.old.c +++ b/sys/arch/alpha/alpha/pmap.old.c @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.old.c,v 1.47 1998/03/07 01:43:54 thorpej Exp $ */ +/* $NetBSD: pmap.old.c,v 1.48 1998/03/07 03:15:43 thorpej Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -137,7 +137,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: pmap.old.c,v 1.47 1998/03/07 01:43:54 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.old.c,v 1.48 1998/03/07 03:15:43 thorpej Exp $"); #include #include @@ -272,6 +272,11 @@ int protection_codes[2][8]; pt_entry_t *Lev1map, *Lev2map, *Lev3map; vm_size_t Lev2mapsize, Lev3mapsize; +/* + * Virtual Page Table. + */ +pt_entry_t *VPT; + /* * Segtabzero is an empty segment table which all processes share til they * reference something. @@ -514,7 +519,8 @@ pmap_bootstrap(ptaddr) << PG_SHIFT; pte |= PG_V | PG_KRE | PG_KWE; /* NOTE NO ASM */ Lev1map[l1pte_index(VPTBASE)] = pte; - + VPT = (pt_entry_t *)VPTBASE; + /* * Set up level 2 page table. */ diff --git a/sys/arch/alpha/include/pmap.old.h b/sys/arch/alpha/include/pmap.old.h index 95689e88e491..e4a52b0bf387 100644 --- a/sys/arch/alpha/include/pmap.old.h +++ b/sys/arch/alpha/include/pmap.old.h @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.old.h,v 1.23 1998/03/06 23:41:02 thorpej Exp $ */ +/* $NetBSD: pmap.old.h,v 1.24 1998/03/07 03:15:43 thorpej Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -173,8 +173,8 @@ struct pv_page { #define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count) #define pmap_wired_count(pmap) ((pmap)->pm_stats.wired_count) -extern pt_entry_t *Sysmap; extern char *vmmap; /* map for mem, dumps, etc. */ +extern pt_entry_t *VPT; /* Virtual Page Table */ #define PMAP_STEAL_MEMORY /* enable pmap_steal_memory() */