More UPAGES --> USPACE.

This commit is contained in:
mycroft 1995-04-12 08:30:40 +00:00
parent 0e218b6169
commit 6ad0e4cf93
3 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kgdb_stub.c,v 1.2 1994/10/26 07:25:41 cgd Exp $ */
/* $NetBSD: kgdb_stub.c,v 1.3 1995/04/12 08:30:40 mycroft Exp $ */
/*
* Copyright (c) 1990, 1993
@ -49,7 +49,7 @@
*/
#ifdef KGDB
#ifndef lint
static char rcsid[] = "$NetBSD: kgdb_stub.c,v 1.2 1994/10/26 07:25:41 cgd Exp $";
static char rcsid[] = "$NetBSD: kgdb_stub.c,v 1.3 1995/04/12 08:30:40 mycroft Exp $";
#endif
#include <sys/param.h>
@ -548,8 +548,8 @@ kgdb_acc(addr, len, rw)
if (kernel_map != NULL)
return (kernacc(addr, len, rw));
if (addr < proc0paddr + UPAGES * NBPG ||
kstack <= addr && addr < kstack + UPAGES * NBPG)
if (addr < proc0paddr + USPACE ||
kstack <= addr && addr < kstack + USPACE)
return (1);
return (0);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.36 1995/02/08 14:51:08 mycroft Exp $ */
/* $NetBSD: locore.s,v 1.37 1995/04/12 08:30:45 mycroft Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -848,7 +848,7 @@ Ldorte1:
*/
.data
.set _kstack,USRSTACK
.set _kstackatbase,USRSTACK+UPAGES*NBPG-4
.set _kstackatbase,USRSTACK+USPACE-4
.globl _kstackatbase
_Umap: .long 0
.globl _kstack, _Umap
@ -1088,7 +1088,7 @@ Lfinish:
jbsr _vm_set_page_size | select software page size
/* set kernel stack, user SP, and initial pcb */
lea _kstack,a1 | proc0 kernel stack
lea a1@(UPAGES*NBPG-4),sp | set kernel stack to end of area
lea a1@(USPACE-4),sp | set kernel stack to end of area
movl #USRSTACK-4,a2
movl a2,usp | init user SP
movl _proc0paddr,a1 | get proc0 pcb addr

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap_bootstrap.c,v 1.4 1994/10/26 07:25:56 cgd Exp $ */
/* $NetBSD: pmap_bootstrap.c,v 1.5 1995/04/12 08:30:49 mycroft Exp $ */
/*
* Copyright (c) 1991, 1993
@ -143,7 +143,7 @@ pmap_bootstrap(nextpa, firstpa)
lkptpa = nextpa;
nextpa += NBPG;
p0upa = nextpa;
nextpa += UPAGES * NBPG;
nextpa += USPACE;
/*
* Initialize segment table and kernel page table map.
@ -407,7 +407,7 @@ pmap_bootstrap(nextpa, firstpa)
* NOTE: `pte' and `epte' aren't PTEs here.
*/
pte = (u_int *)p0upa;
epte = (u_int *)(p0upa + UPAGES*NBPG);
epte = (u_int *)(p0upa + USPACE);
while (pte < epte)
*pte++ = 0;
/*