Pass the max ASN from the HWRPB to pmap_boostrap().

This commit is contained in:
thorpej 1998-03-18 19:02:49 +00:00
parent 426d2953f5
commit 56e004c995
3 changed files with 9 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.113 1998/03/17 05:00:18 thorpej Exp $ */
/* $NetBSD: machdep.c,v 1.114 1998/03/18 19:02:50 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -69,7 +69,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.113 1998/03/17 05:00:18 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.114 1998/03/18 19:02:50 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -754,12 +754,8 @@ nobootinfo:
* Initialize the virtual memory system, and set the
* page table base register in proc 0's PCB.
*/
#ifndef NEW_PMAP
pmap_bootstrap(ALPHA_PHYS_TO_K0SEG(ptb << PGSHIFT));
#else
pmap_bootstrap(ALPHA_PHYS_TO_K0SEG(ptb << PGSHIFT),
hwrpb->rpb_max_asn);
#endif
/*
* Initialize the rest of proc 0's PCB, and cache its physical

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.old.c,v 1.54 1998/03/17 05:15:24 thorpej Exp $ */
/* $NetBSD: pmap.old.c,v 1.55 1998/03/18 19:02:49 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -155,7 +155,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: pmap.old.c,v 1.54 1998/03/17 05:15:24 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap.old.c,v 1.55 1998/03/18 19:02:49 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -400,8 +400,9 @@ do { \
* Bootstrap the system to run with virtual memory.
*/
void
pmap_bootstrap(ptaddr)
pmap_bootstrap(ptaddr, maxasn)
vm_offset_t ptaddr;
u_int maxasn;
{
pt_entry_t pte;
int i;
@ -409,7 +410,7 @@ pmap_bootstrap(ptaddr)
#ifdef DEBUG
if (pmapdebug & (PDB_FOLLOW|PDB_BOOTSTRAP))
printf("pmap_bootstrap(0x%lx)\n", ptaddr);
printf("pmap_bootstrap(0x%lx, %u)\n", ptaddr, maxasn);
#endif
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.old.h,v 1.28 1998/03/18 19:00:15 thorpej Exp $ */
/* $NetBSD: pmap.old.h,v 1.29 1998/03/18 19:02:50 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -169,7 +169,7 @@ extern pt_entry_t *VPT; /* Virtual Page Table */
vm_offset_t vtophys __P((vm_offset_t));
/* Machine-specific functions. */
void pmap_bootstrap __P((vm_offset_t ptaddr));
void pmap_bootstrap __P((vm_offset_t ptaddr, u_int maxasn));
void pmap_emulate_reference __P((struct proc *p, vm_offset_t v,
int user, int write));
#ifdef _PMAP_MAY_USE_PROM_CONSOLE