summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-18 16:54:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-18 16:54:13 +0000
commitd52e6d948c583c385b4a797a75a76cff2d6df41e (patch)
treee3edea4af952534716f3bbece2c5a274eea762d9 /sys/arch
parent67ed58341606f9e4744208115e6f35ba835e4d43 (diff)
pfour support, some prettying up
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc/sparc/machdep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c
index 8ffafb5d266..3ddbf3ee758 100644
--- a/sys/arch/sparc/sparc/machdep.c
+++ b/sys/arch/sparc/sparc/machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.50 1995/10/07 06:26:06 mycroft Exp $ */
+/* $NetBSD: machdep.c,v 1.45 1995/05/16 21:16:37 mycroft Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -226,7 +226,7 @@ cpu_startup()
*/
dvmabase = kmem_alloc_wait(phys_map, (DVMA_END-DVMA_BASE)/2);
rminit(dvmamap, btoc((DVMA_END-DVMA_BASE)/2),
- vtorc(dvmabase), "dvmamap", ndvmamap);
+ vtorc(dvmabase), "dvmamap", ndvmamap);
/*
* Finally, allocate mbuf pool. Since mclrefcnt is an off-size
@@ -374,9 +374,8 @@ setregs(p, pack, stack, retval)
bzero((caddr_t)tf, sizeof *tf);
tf->tf_psr = psr;
tf->tf_pc = pack->ep_entry & ~3;
- tf->tf_npc = tf->tf_pc + 4;
tf->tf_global[1] = (int)PS_STRINGS;
- tf->tf_global[2] = tf->tf_global[7] = tf->tf_npc;
+ tf->tf_global[2] = tf->tf_global[7] = tf->tf_npc = tf->tf_pc+4;
stack -= sizeof(struct rwindow);
tf->tf_out[6] = stack;
retval[1] = 0;
@@ -824,6 +823,7 @@ int bt2pmt[] = {
PMAP_OBIO,
PMAP_VME16,
PMAP_VME32,
+ PMAP_OBIO,
PMAP_OBIO
};