Export a pointer to the Virtual Page Table.
This commit is contained in:
parent
f7d64ef778
commit
cd7d081d02
@ -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 <sys/cdefs.h> /* 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 <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -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.
|
||||
*/
|
||||
|
@ -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() */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user