goodbye PS_STRINGS
This commit is contained in:
parent
f41ec821b9
commit
df95562a0f
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.191 2002/03/11 16:27:04 pk Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.192 2002/03/18 13:27:02 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -405,7 +405,7 @@ setregs(p, pack, stack)
|
||||
* Set the registers to 0 except for:
|
||||
* %o6: stack pointer, built in exec())
|
||||
* %psr: (retain CWP and PSR_S bits)
|
||||
* %g1: address of PS_STRINGS (used by crt0)
|
||||
* %g1: address of p->p_psstr (used by crt0)
|
||||
* %pc,%npc: entry point of program
|
||||
*/
|
||||
psr = tf->tf_psr & (PSR_S | PSR_CWP);
|
||||
@ -427,7 +427,7 @@ setregs(p, pack, stack)
|
||||
}
|
||||
bzero((caddr_t)tf, sizeof *tf);
|
||||
tf->tf_psr = psr;
|
||||
tf->tf_global[1] = (int)PS_STRINGS;
|
||||
tf->tf_global[1] = (int)p->p_psstr;
|
||||
tf->tf_pc = pack->ep_entry & ~3;
|
||||
tf->tf_npc = tf->tf_pc + 4;
|
||||
stack -= sizeof(struct rwindow);
|
||||
|
Loading…
Reference in New Issue
Block a user