summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-05-12 22:47:09 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-05-12 22:47:09 +0000
commit9c57393a60465aae060b1d25ea46d0b95bf95714 (patch)
tree96da2430874d2d5b18de551316b5cbd2f19197d5 /sys/arch
parent581920fcf962851a624f7a04e3c9ec5d6a649df1 (diff)
Do not use curproc before it gets initialized.
From niklas@.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/pmax/pmax/machdep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/pmax/pmax/machdep.c b/sys/arch/pmax/pmax/machdep.c
index d102b95a81f..4ebf71853ed 100644
--- a/sys/arch/pmax/pmax/machdep.c
+++ b/sys/arch/pmax/pmax/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.28 2001/05/05 22:34:09 art Exp $ */
+/* $OpenBSD: machdep.c,v 1.29 2001/05/12 22:47:08 miod Exp $ */
/* $NetBSD: machdep.c,v 1.67 1996/10/23 20:04:40 mhitch Exp $ */
/*
@@ -348,13 +348,13 @@ mach_init(argc, argv, code, cv)
* Init mapping for u page(s) for proc[0], pm_tlbpid 1.
*/
start = v;
- curproc->p_addr = proc0paddr = (struct user *)v;
- curproc->p_md.md_regs = proc0paddr->u_pcb.pcb_regs;
+ proc0.p_addr = proc0paddr = (struct user *)v;
+ proc0.p_md.md_regs = proc0paddr->u_pcb.pcb_regs;
firstaddr = MIPS_KSEG0_TO_PHYS(v);
for (i = 0; i < UPAGES; i++) {
MachTLBWriteIndexed(i,
(UADDR + (i << PGSHIFT)) | (1 << MIPS_TLB_PID_SHIFT),
- curproc->p_md.md_upte[i] = firstaddr | PG_V | PG_M);
+ proc0.p_md.md_upte[i] = firstaddr | PG_V | PG_M);
firstaddr += NBPG;
}
v += UPAGES * NBPG;