kill remaining PS_STRINGS instances.
This commit is contained in:
parent
8ea2c88ec2
commit
7e277b5782
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.168 2002/03/06 13:10:19 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.169 2002/03/20 17:59:22 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -46,7 +46,7 @@
|
||||
#include "opt_compat_netbsd.h"
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.168 2002/03/06 13:10:19 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.169 2002/03/20 17:59:22 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -64,7 +64,6 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.168 2002/03/06 13:10:19 tsutsui Exp $"
|
||||
#include <sys/mbuf.h>
|
||||
#include <sys/msgbuf.h>
|
||||
#include <sys/user.h>
|
||||
#include <sys/exec.h> /* for PS_STRINGS */
|
||||
#include <sys/vnode.h>
|
||||
#include <sys/device.h>
|
||||
#include <sys/queue.h>
|
||||
@ -386,7 +385,7 @@ setregs(p, pack, stack)
|
||||
frame->f_regs[D7] = 0;
|
||||
frame->f_regs[A0] = 0;
|
||||
frame->f_regs[A1] = 0;
|
||||
frame->f_regs[A2] = (int)PS_STRINGS;
|
||||
frame->f_regs[A2] = (int)p->p_psstr;
|
||||
frame->f_regs[A3] = 0;
|
||||
frame->f_regs[A4] = 0;
|
||||
frame->f_regs[A5] = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.113 2002/03/06 13:10:19 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.114 2002/03/20 17:59:22 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -62,7 +62,6 @@
|
||||
#include <sys/mbuf.h>
|
||||
#include <sys/msgbuf.h>
|
||||
#include <sys/user.h>
|
||||
#include <sys/exec.h> /* for PS_STRINGS */
|
||||
#include <sys/vnode.h>
|
||||
#include <sys/queue.h>
|
||||
#include <sys/mount.h>
|
||||
@ -350,7 +349,7 @@ setregs(p, pack, stack)
|
||||
frame->f_regs[D7] = 0;
|
||||
frame->f_regs[A0] = 0;
|
||||
frame->f_regs[A1] = 0;
|
||||
frame->f_regs[A2] = (int)PS_STRINGS;
|
||||
frame->f_regs[A2] = (int)p->p_psstr;
|
||||
frame->f_regs[A3] = 0;
|
||||
frame->f_regs[A4] = 0;
|
||||
frame->f_regs[A5] = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.5 2002/03/06 13:10:20 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.6 2002/03/20 17:59:23 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -385,7 +385,7 @@ setregs(p, pack, stack)
|
||||
frame->f_regs[D7] = 0;
|
||||
frame->f_regs[A0] = 0;
|
||||
frame->f_regs[A1] = 0;
|
||||
frame->f_regs[A2] = (int)PS_STRINGS;
|
||||
frame->f_regs[A2] = (int)p->p_psstr;
|
||||
frame->f_regs[A3] = 0;
|
||||
frame->f_regs[A4] = 0;
|
||||
frame->f_regs[A5] = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.156 2002/03/15 05:55:38 gmcgarry Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.157 2002/03/20 17:59:23 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -43,7 +43,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.156 2002/03/15 05:55:38 gmcgarry Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.157 2002/03/20 17:59:23 christos Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_compat_hpux.h"
|
||||
@ -444,7 +444,7 @@ setregs(p, pack, stack)
|
||||
frame->f_regs[D7] = 0;
|
||||
frame->f_regs[A0] = 0;
|
||||
frame->f_regs[A1] = 0;
|
||||
frame->f_regs[A2] = (int)PS_STRINGS;
|
||||
frame->f_regs[A2] = (int)p->p_psstr;
|
||||
frame->f_regs[A3] = 0;
|
||||
frame->f_regs[A4] = 0;
|
||||
frame->f_regs[A5] = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.20 2002/03/06 13:10:21 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.21 2002/03/20 17:59:23 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
@ -38,7 +38,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.20 2002/03/06 13:10:21 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.21 2002/03/20 17:59:23 christos Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -397,7 +397,7 @@ setregs(p, pack, stack)
|
||||
frame->f_regs[D7] = 0;
|
||||
frame->f_regs[A0] = 0;
|
||||
frame->f_regs[A1] = 0;
|
||||
frame->f_regs[A2] = (int)PS_STRINGS;
|
||||
frame->f_regs[A2] = (int)p->p_psstr;
|
||||
frame->f_regs[A3] = 0;
|
||||
frame->f_regs[A4] = 0;
|
||||
frame->f_regs[A5] = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.268 2002/03/06 13:10:21 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.269 2002/03/20 17:59:23 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -558,7 +558,7 @@ setregs(p, pack, stack)
|
||||
frame->f_regs[D7] = 0;
|
||||
frame->f_regs[A0] = 0;
|
||||
frame->f_regs[A1] = 0;
|
||||
frame->f_regs[A2] = (int)PS_STRINGS;
|
||||
frame->f_regs[A2] = (int)p->p_psstr;
|
||||
frame->f_regs[A3] = 0;
|
||||
frame->f_regs[A4] = 0;
|
||||
frame->f_regs[A5] = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.88 2002/03/06 13:10:22 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.89 2002/03/20 17:59:24 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -602,7 +602,7 @@ setregs(p, pack, stack)
|
||||
frame->f_regs[D7] = 0;
|
||||
frame->f_regs[A0] = 0;
|
||||
frame->f_regs[A1] = 0;
|
||||
frame->f_regs[A2] = (int)PS_STRINGS;
|
||||
frame->f_regs[A2] = (int)p->p_psstr;
|
||||
frame->f_regs[A3] = 0;
|
||||
frame->f_regs[A4] = 0;
|
||||
frame->f_regs[A5] = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.28 2002/03/06 13:10:22 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.29 2002/03/20 17:59:24 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -362,7 +362,7 @@ setregs(p, pack, stack)
|
||||
frame->f_regs[D7] = 0;
|
||||
frame->f_regs[A0] = 0;
|
||||
frame->f_regs[A1] = 0;
|
||||
frame->f_regs[A2] = (int)PS_STRINGS;
|
||||
frame->f_regs[A2] = (int)p->p_psstr;
|
||||
frame->f_regs[A3] = 0;
|
||||
frame->f_regs[A4] = 0;
|
||||
frame->f_regs[A5] = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.46 2002/03/06 13:10:23 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.47 2002/03/20 17:59:25 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -431,7 +431,7 @@ setregs(p, pack, stack)
|
||||
frame->f_regs[D7] = 0;
|
||||
frame->f_regs[A0] = 0;
|
||||
frame->f_regs[A1] = 0;
|
||||
frame->f_regs[A2] = (int)PS_STRINGS;
|
||||
frame->f_regs[A2] = (int)p->p_psstr;
|
||||
frame->f_regs[A3] = 0;
|
||||
frame->f_regs[A4] = 0;
|
||||
frame->f_regs[A5] = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.126 2002/03/06 13:10:23 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.127 2002/03/20 17:59:25 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996 Matthias Pfaller.
|
||||
@ -789,7 +789,7 @@ setregs(p, pack, stack)
|
||||
r->r_sp = stack;
|
||||
r->r_pc = pack->ep_entry;
|
||||
r->r_psr = PSL_USERSET;
|
||||
r->r_r7 = (int)PS_STRINGS;
|
||||
r->r_r7 = (int)p->p_psstr;
|
||||
|
||||
pcbp->pcb_fsr = FPC_UEN;
|
||||
memset(pcbp->pcb_freg, 0, sizeof(pcbp->pcb_freg));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.117 2002/03/15 07:06:24 eeh Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.118 2002/03/20 17:59:25 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -369,7 +369,7 @@ setregs(p, pack, stack)
|
||||
* Set the registers to 0 except for:
|
||||
* %o6: stack pointer, built in exec())
|
||||
* %tstate: (retain icc and xcc and cwp bits)
|
||||
* %g1: address of PS_STRINGS (used by crt0)
|
||||
* %g1: address of p->p_psstr (used by crt0)
|
||||
* %tpc,%tnpc: entry point of program
|
||||
*/
|
||||
#ifdef __arch64__
|
||||
|
@ -101,7 +101,7 @@ netbsd32_setregs(p, pack, stack)
|
||||
* Set the registers to 0 except for:
|
||||
* %o6: stack pointer, built in exec())
|
||||
* %tstate: (retain icc and xcc and cwp bits)
|
||||
* %g1: address of PS_STRINGS (used by crt0)
|
||||
* %g1: address of p->p_psstr (used by crt0)
|
||||
* %tpc,%tnpc: entry point of program
|
||||
*/
|
||||
tstate = ((PSTATE_USER32)<<TSTATE_PSTATE_SHIFT)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sunos32_machdep.c,v 1.6 2001/12/08 00:35:25 thorpej Exp $ */
|
||||
/* $NetBSD: sunos32_machdep.c,v 1.7 2002/03/20 17:59:26 christos Exp $ */
|
||||
/* from: NetBSD: sunos_machdep.c,v 1.14 2001/01/29 01:37:56 mrg Exp */
|
||||
|
||||
/*
|
||||
@ -119,7 +119,7 @@ sunos32_setregs(p, pack, stack)
|
||||
* Set the registers to 0 except for:
|
||||
* %o6: stack pointer, built in exec())
|
||||
* %tstate: (retain icc and xcc and cwp bits)
|
||||
* %g1: address of PS_STRINGS (used by crt0)
|
||||
* %g1: address of p->p_psstr (used by crt0)
|
||||
* %tpc,%tnpc: entry point of program
|
||||
*/
|
||||
tstate = ((PSTATE_USER32)<<TSTATE_PSTATE_SHIFT)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: svr4_32_machdep.c,v 1.4 2001/06/17 13:10:05 kleink Exp $ */
|
||||
/* $NetBSD: svr4_32_machdep.c,v 1.5 2002/03/20 17:59:26 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994 The NetBSD Foundation, Inc.
|
||||
@ -83,7 +83,7 @@ svr4_32_setregs(p, epp, stack)
|
||||
|
||||
netbsd32_setregs(p, epp, stack);
|
||||
|
||||
/* This should be the exit function, not PS_STRINGS. */
|
||||
/* This should be the exit function, not p->p_psstr. */
|
||||
tf->tf_global[1] = (vaddr_t)0;
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: svr4_machdep.c,v 1.22 2001/08/25 15:05:22 mrg Exp $ */
|
||||
/* $NetBSD: svr4_machdep.c,v 1.23 2002/03/20 17:59:26 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994 The NetBSD Foundation, Inc.
|
||||
@ -84,7 +84,7 @@ svr4_setregs(p, epp, stack)
|
||||
|
||||
setregs(p, epp, stack);
|
||||
|
||||
/* This should be the exit function, not PS_STRINGS. */
|
||||
/* This should be the exit function, not p->p_psstr. */
|
||||
tf->tf_global[1] = (vaddr_t)0;
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.13 2002/03/06 13:10:24 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.14 2002/03/20 17:59:26 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001 Matthew Fredette.
|
||||
@ -434,7 +434,7 @@ setregs(p, pack, stack)
|
||||
tf->tf_regs[D7] = 0;
|
||||
tf->tf_regs[A0] = 0;
|
||||
tf->tf_regs[A1] = 0;
|
||||
tf->tf_regs[A2] = (int)PS_STRINGS;
|
||||
tf->tf_regs[A2] = (int)p->p_psstr;
|
||||
tf->tf_regs[A3] = 0;
|
||||
tf->tf_regs[A4] = 0;
|
||||
tf->tf_regs[A5] = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.153 2002/03/06 13:10:25 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.154 2002/03/20 17:59:26 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Gordon W. Ross
|
||||
@ -338,7 +338,7 @@ setregs(p, pack, stack)
|
||||
tf->tf_regs[D7] = 0;
|
||||
tf->tf_regs[A0] = 0;
|
||||
tf->tf_regs[A1] = 0;
|
||||
tf->tf_regs[A2] = (int)PS_STRINGS;
|
||||
tf->tf_regs[A2] = (int)p->p_psstr;
|
||||
tf->tf_regs[A3] = 0;
|
||||
tf->tf_regs[A4] = 0;
|
||||
tf->tf_regs[A5] = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.77 2002/03/06 13:10:25 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.78 2002/03/20 17:59:27 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -340,7 +340,7 @@ setregs(p, pack, stack)
|
||||
tf->tf_regs[D7] = 0;
|
||||
tf->tf_regs[A0] = 0;
|
||||
tf->tf_regs[A1] = 0;
|
||||
tf->tf_regs[A2] = (int)PS_STRINGS;
|
||||
tf->tf_regs[A2] = (int)p->p_psstr;
|
||||
tf->tf_regs[A3] = 0;
|
||||
tf->tf_regs[A4] = 0;
|
||||
tf->tf_regs[A5] = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: trap.c,v 1.68 2002/03/10 22:32:31 ragge Exp $ */
|
||||
/* $NetBSD: trap.c,v 1.69 2002/03/20 17:59:27 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
|
||||
@ -325,7 +325,7 @@ setregs(struct proc *p, struct exec_package *pack, u_long stack)
|
||||
exptr->r6 = stack; /* for ELF */
|
||||
exptr->r7 = 0; /* for ELF */
|
||||
exptr->r8 = 0; /* for ELF */
|
||||
exptr->r9 = (u_long) PS_STRINGS; /* for ELF */
|
||||
exptr->r9 = (u_long) p->p_psstr; /* for ELF */
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.104 2002/03/06 13:10:25 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.105 2002/03/20 17:59:27 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -380,7 +380,7 @@ setregs(p, pack, stack)
|
||||
frame->f_regs[D7] = 0;
|
||||
frame->f_regs[A0] = 0;
|
||||
frame->f_regs[A1] = 0;
|
||||
frame->f_regs[A2] = (int)PS_STRINGS;
|
||||
frame->f_regs[A2] = (int)p->p_psstr;
|
||||
frame->f_regs[A3] = 0;
|
||||
frame->f_regs[A4] = 0;
|
||||
frame->f_regs[A5] = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.3 2001/11/20 08:43:43 lukem Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.4 2002/03/20 17:59:28 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
|
||||
@ -994,7 +994,7 @@ setregs(p, pack, stack)
|
||||
tf->tf_rdi = 0;
|
||||
tf->tf_rsi = 0;
|
||||
tf->tf_rbp = 0;
|
||||
tf->tf_rbx = (u_int64_t)PS_STRINGS;
|
||||
tf->tf_rbx = (u_int64_t)p->p_psstr;
|
||||
tf->tf_rdx = 0;
|
||||
tf->tf_rcx = 0;
|
||||
tf->tf_rax = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user