Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch Remove setregs since it now lives in powerpc/powerp...



details:   https://anonhg.NetBSD.org/src/rev/996fb1ec9e70
branches:  trunk
changeset: 504171:996fb1ec9e70
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Feb 24 04:35:33 2001 +0000

description:
Remove setregs since it now lives in powerpc/powerpc/powerpc_machdep.c

diffstat:

 sys/arch/amigappc/amigappc/machdep.c   |  49 +---------------------------------
 sys/arch/bebox/bebox/machdep.c         |  49 +---------------------------------
 sys/arch/macppc/macppc/machdep.c       |  49 +---------------------------------
 sys/arch/ofppc/ofppc/machdep.c         |  49 +---------------------------------
 sys/arch/prep/prep/machdep.c           |  49 +---------------------------------
 sys/arch/sandpoint/sandpoint/machdep.c |  49 +---------------------------------
 6 files changed, 6 insertions(+), 288 deletions(-)

diffs (truncated from 378 to 300 lines):

diff -r f65d837f366f -r 996fb1ec9e70 sys/arch/amigappc/amigappc/machdep.c
--- a/sys/arch/amigappc/amigappc/machdep.c      Sat Feb 24 04:30:42 2001 +0000
+++ b/sys/arch/amigappc/amigappc/machdep.c      Sat Feb 24 04:35:33 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.7 2001/02/18 19:08:16 is Exp $ */
+/* $NetBSD: machdep.c,v 1.8 2001/02/24 04:35:34 matt Exp $ */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -857,53 +857,6 @@
 }
 
 /*
- * Set set up registers on exec.
- */
-void
-setregs(p, pack, stack)
-       struct proc *p;
-       struct exec_package *pack;
-       u_long stack;
-{
-       struct trapframe *tf = trapframe(p);
-       struct ps_strings arginfo;
-       paddr_t pa;
-
-       bzero(tf, sizeof *tf);
-       tf->fixreg[1] = -roundup(-stack + 8, 16);
-
-       /*
-        * XXX Machine-independent code has already copied arguments and
-        * XXX environment to userland.  Get them back here
-        */
-       (void)copyin((char *)PS_STRINGS, &arginfo, sizeof(arginfo));
-
-       /*
-        * Set up arguments for _start():
-        *      _start(argc, argv, envp, obj, cleanup, ps_strings);
-        * Notes:
-        *      - obj and cleanup are the auxilliary and termination
-        *        vectors.  They are fixed up by ld.elf_so.
-        *      - ps_strings is a NetBSD extention, and will be
-        *        ignored by executables which are strictly
-        *        compliant with the SVR4 ABI.
-        *
-        * XXX We have to set both regs and retval here due to different
-        * XXX calling convention in trap.c and init_main.c.
-        */
-       tf->fixreg[3] = arginfo.ps_nargvstr;
-       tf->fixreg[4] = (register_t)arginfo.ps_argvstr;
-       tf->fixreg[5] = (register_t)arginfo.ps_envstr;
-       tf->fixreg[6] = 0;                      /* auxillary vector */
-       tf->fixreg[7] = 0;                      /* termination vector */
-       tf->fixreg[8] = (register_t)PS_STRINGS; /* NetBSD extension */
-
-       tf->srr0 = pack->ep_entry;
-       tf->srr1 = PSL_MBO | PSL_USERSET | PSL_FE_DFLT;
-       p->p_addr->u_pcb.pcb_flags = 0;
-}
-
-/*
  * Machine dependent system variables
  */
 int
diff -r f65d837f366f -r 996fb1ec9e70 sys/arch/bebox/bebox/machdep.c
--- a/sys/arch/bebox/bebox/machdep.c    Sat Feb 24 04:30:42 2001 +0000
+++ b/sys/arch/bebox/bebox/machdep.c    Sat Feb 24 04:35:33 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.57 2000/09/13 15:00:17 thorpej Exp $     */
+/*     $NetBSD: machdep.c,v 1.58 2001/02/24 04:35:33 matt Exp $        */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -671,53 +671,6 @@
 #endif
 
 /*
- * Set set up registers on exec.
- */
-void
-setregs(p, pack, stack)
-       struct proc *p;
-       struct exec_package *pack;
-       u_long stack;
-{
-       struct trapframe *tf = trapframe(p);
-       struct ps_strings arginfo;
-
-       bzero(tf, sizeof *tf);
-       tf->fixreg[1] = -roundup(-stack + 8, 16);
-
-       /*
-        * XXX Machine-independent code has already copied arguments and
-        * XXX environment to userland.  Get them back here.
-        */
-       (void)copyin((char *)PS_STRINGS, &arginfo, sizeof(arginfo));
-
-       /*
-        * Set up arguments for _start():
-        *      _start(argc, argv, envp, obj, cleanup, ps_strings);
-        *
-        * Notes:
-        *      - obj and cleanup are the auxilliary and termination
-        *        vectors.  They are fixed up by ld.elf_so.
-        *      - ps_strings is a NetBSD extention, and will be
-        *        ignored by executables which are strictly
-        *        compliant with the SVR4 ABI.
-        *
-        * XXX We have to set both regs and retval here due to different
-        * XXX calling convention in trap.c and init_main.c.
-        */
-       tf->fixreg[3] = arginfo.ps_nargvstr;
-       tf->fixreg[4] = (register_t)arginfo.ps_argvstr;
-       tf->fixreg[5] = (register_t)arginfo.ps_envstr;
-       tf->fixreg[6] = 0;                      /* auxillary vector */
-       tf->fixreg[7] = 0;                      /* termination vector */
-       tf->fixreg[8] = (register_t)PS_STRINGS; /* NetBSD extension */
-
-       tf->srr0 = pack->ep_entry;
-       tf->srr1 = PSL_MBO | PSL_USERSET | PSL_FE_DFLT;
-       p->p_addr->u_pcb.pcb_flags = 0;
-}
-
-/*
  * Machine dependent system variables.
  */
 int
diff -r f65d837f366f -r 996fb1ec9e70 sys/arch/macppc/macppc/machdep.c
--- a/sys/arch/macppc/macppc/machdep.c  Sat Feb 24 04:30:42 2001 +0000
+++ b/sys/arch/macppc/macppc/machdep.c  Sat Feb 24 04:35:33 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.88 2000/12/17 23:24:26 tsubai Exp $      */
+/*     $NetBSD: machdep.c,v 1.89 2001/02/24 04:35:33 matt Exp $        */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -535,53 +535,6 @@
 }
 
 /*
- * Set set up registers on exec.
- */
-void
-setregs(p, pack, stack)
-       struct proc *p;
-       struct exec_package *pack;
-       u_long stack;
-{
-       struct trapframe *tf = trapframe(p);
-       struct ps_strings arginfo;
-
-       bzero(tf, sizeof *tf);
-       tf->fixreg[1] = -roundup(-stack + 8, 16);
-
-       /*
-        * XXX Machine-independent code has already copied arguments and
-        * XXX environment to userland.  Get them back here.
-        */
-       (void)copyin((char *)PS_STRINGS, &arginfo, sizeof(arginfo));
-
-       /*
-        * Set up arguments for _start():
-        *      _start(argc, argv, envp, obj, cleanup, ps_strings);
-        *
-        * Notes:
-        *      - obj and cleanup are the auxilliary and termination
-        *        vectors.  They are fixed up by ld.elf_so.
-        *      - ps_strings is a NetBSD extention, and will be
-        *        ignored by executables which are strictly
-        *        compliant with the SVR4 ABI.
-        *
-        * XXX We have to set both regs and retval here due to different
-        * XXX calling convention in trap.c and init_main.c.
-        */
-       tf->fixreg[3] = arginfo.ps_nargvstr;
-       tf->fixreg[4] = (register_t)arginfo.ps_argvstr;
-       tf->fixreg[5] = (register_t)arginfo.ps_envstr;
-       tf->fixreg[6] = 0;                      /* auxillary vector */
-       tf->fixreg[7] = 0;                      /* termination vector */
-       tf->fixreg[8] = (register_t)PS_STRINGS; /* NetBSD extension */
-
-       tf->srr0 = pack->ep_entry;
-       tf->srr1 = PSL_MBO | PSL_USERSET | PSL_FE_DFLT;
-       p->p_addr->u_pcb.pcb_flags = 0;
-}
-
-/*
  * Machine dependent system variables.
  */
 int
diff -r f65d837f366f -r 996fb1ec9e70 sys/arch/ofppc/ofppc/machdep.c
--- a/sys/arch/ofppc/ofppc/machdep.c    Sat Feb 24 04:30:42 2001 +0000
+++ b/sys/arch/ofppc/ofppc/machdep.c    Sat Feb 24 04:35:33 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.60 2000/11/16 01:56:05 thorpej Exp $     */
+/*     $NetBSD: machdep.c,v 1.61 2001/02/24 04:35:34 matt Exp $        */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -502,53 +502,6 @@
 }
 
 /*
- * Set set up registers on exec.
- */
-void
-setregs(p, pack, stack)
-       struct proc *p;
-       struct exec_package *pack;
-       u_long stack;
-{
-       struct trapframe *tf = trapframe(p);
-       struct ps_strings arginfo;
-
-       bzero(tf, sizeof *tf);
-       tf->fixreg[1] = -roundup(-stack + 8, 16);
-
-       /*
-        * XXX Machine-independent code has already copied arguments and
-        * XXX environment to userland.  Get them back here.
-        */
-       (void)copyin((char *)PS_STRINGS, &arginfo, sizeof (arginfo));
-
-       /*
-        * Set up arguments for _start():
-        *      _start(argc, argv, envp, obj, cleanup, ps_strings);
-        *
-        * Notes:
-        *      - obj and cleanup are the auxilliary and termination
-        *        vectors.  They are fixed up by ld.elf_so.
-        *      - ps_strings is a NetBSD extention, and will be
-        *        ignored by executables which are strictly
-        *        compliant with the SVR4 ABI.
-        *
-        * XXX We have to set both regs and retval here due to different
-        * XXX calling convention in trap.c and init_main.c.
-        */
-       tf->fixreg[3] = arginfo.ps_nargvstr;
-       tf->fixreg[4] = (register_t)arginfo.ps_argvstr;
-       tf->fixreg[5] = (register_t)arginfo.ps_envstr;
-       tf->fixreg[6] = 0;                      /* auxillary vector */
-       tf->fixreg[7] = 0;                      /* termination vector */
-       tf->fixreg[8] = (register_t)PS_STRINGS; /* NetBSD extension */
-
-       tf->srr0 = pack->ep_entry;
-       tf->srr1 = PSL_MBO | PSL_USERSET | PSL_FE_DFLT;
-       p->p_addr->u_pcb.pcb_flags = 0;
-}
-
-/*
  * Machine dependent system variables.
  */
 int
diff -r f65d837f366f -r 996fb1ec9e70 sys/arch/prep/prep/machdep.c
--- a/sys/arch/prep/prep/machdep.c      Sat Feb 24 04:30:42 2001 +0000
+++ b/sys/arch/prep/prep/machdep.c      Sat Feb 24 04:35:33 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.13 2000/12/01 21:54:01 matt Exp $        */
+/*     $NetBSD: machdep.c,v 1.14 2001/02/24 04:35:34 matt Exp $        */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -698,53 +698,6 @@
 #endif
 
 /*
- * Set set up registers on exec.
- */
-void
-setregs(p, pack, stack)
-       struct proc *p;
-       struct exec_package *pack;
-       u_long stack;
-{
-       struct trapframe *tf = trapframe(p);
-       struct ps_strings arginfo;
-
-       bzero(tf, sizeof *tf);
-       tf->fixreg[1] = -roundup(-stack + 8, 16);
-
-       /*
-        * XXX Machine-independent code has already copied arguments and
-        * XXX environment to userland.  Get them back here.
-        */
-       (void)copyin((char *)PS_STRINGS, &arginfo, sizeof(arginfo));
-
-       /*
-        * Set up arguments for _start():
-        *      _start(argc, argv, envp, obj, cleanup, ps_strings);
-        *
-        * Notes:
-        *      - obj and cleanup are the auxilliary and termination
-        *        vectors.  They are fixed up by ld.elf_so.
-        *      - ps_strings is a NetBSD extention, and will be
-        *        ignored by executables which are strictly
-        *        compliant with the SVR4 ABI.
-        *
-        * XXX We have to set both regs and retval here due to different
-        * XXX calling convention in trap.c and init_main.c.
-        */
-       tf->fixreg[3] = arginfo.ps_nargvstr;



Home | Main Index | Thread Index | Old Index