Source-Changes-HG archive

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

[src/trunk]: src/sys Change u_long to vaddr_t/vsize_t in exec code where appr...



details:   https://anonhg.NetBSD.org/src/rev/f6c317015b5d
branches:  trunk
changeset: 749830:f6c317015b5d
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Dec 10 14:13:48 2009 +0000

description:
Change u_long to vaddr_t/vsize_t in exec code where appropriate (mostly
involves setregs and vmcmds).  Should result in no code differences.

diffstat:

 sys/arch/alpha/alpha/machdep.c              |   8 ++++----
 sys/arch/amd64/amd64/machdep.c              |   6 +++---
 sys/arch/amd64/amd64/netbsd32_machdep.c     |   6 +++---
 sys/arch/amiga/amiga/machdep.c              |   6 +++---
 sys/arch/arm/arm/arm_machdep.c              |   6 +++---
 sys/arch/atari/atari/machdep.c              |   6 +++---
 sys/arch/cesfic/cesfic/machdep.c            |   6 +++---
 sys/arch/hp300/hp300/machdep.c              |   6 +++---
 sys/arch/hp300/include/hpux_machdep.h       |   4 ++--
 sys/arch/hp700/hp700/machdep.c              |   6 +++---
 sys/arch/i386/i386/freebsd_machdep.c        |   6 +++---
 sys/arch/i386/i386/ibcs2_machdep.c          |   6 +++---
 sys/arch/i386/i386/machdep.c                |   6 +++---
 sys/arch/i386/i386/svr4_machdep.c           |   6 +++---
 sys/arch/i386/include/ibcs2_machdep.h       |   4 ++--
 sys/arch/ia64/ia64/machdep.c                |   4 ++--
 sys/arch/luna68k/luna68k/machdep.c          |   6 +++---
 sys/arch/m68k/m68k/svr4_machdep.c           |   6 +++---
 sys/arch/mac68k/mac68k/machdep.c            |   6 +++---
 sys/arch/mips/include/ecoff_machdep.h       |   4 ++--
 sys/arch/mips/mips/cpu_exec.c               |   6 +++---
 sys/arch/mips/mips/mips_machdep.c           |   6 +++---
 sys/arch/mvme68k/mvme68k/machdep.c          |   6 +++---
 sys/arch/news68k/news68k/machdep.c          |   6 +++---
 sys/arch/next68k/next68k/machdep.c          |   6 +++---
 sys/arch/powerpc/include/netbsd32_machdep.h |   4 ++--
 sys/arch/powerpc/powerpc/powerpc_machdep.c  |   6 +++---
 sys/arch/sh3/sh3/sh3_machdep.c              |   6 +++---
 sys/arch/sparc/sparc/machdep.c              |   6 +++---
 sys/arch/sparc/sparc/svr4_machdep.c         |   6 +++---
 sys/arch/sparc64/sparc64/netbsd32_machdep.c |   6 +++---
 sys/arch/sparc64/sparc64/sunos32_machdep.c  |   6 +++---
 sys/arch/sparc64/sparc64/svr4_32_machdep.c  |   6 +++---
 sys/arch/sparc64/sparc64/svr4_machdep.c     |   6 +++---
 sys/arch/sun2/sun2/machdep.c                |   6 +++---
 sys/arch/sun3/sun3/machdep.c                |   6 +++---
 sys/arch/sun3/sun3x/machdep.c               |   6 +++---
 sys/arch/usermode/usermode/machdep.c        |   6 +++---
 sys/arch/vax/include/ibcs2_machdep.h        |   4 ++--
 sys/arch/vax/vax/ibcs2_machdep.c            |   6 +++---
 sys/arch/vax/vax/trap.c                     |   6 +++---
 sys/arch/x68k/x68k/machdep.c                |   6 +++---
 sys/compat/freebsd/freebsd_exec.h           |   4 ++--
 sys/compat/irix/irix_exec.c                 |   6 +++---
 sys/compat/irix/irix_exec.h                 |   4 ++--
 sys/compat/linux/common/linux_exec.h        |   4 ++--
 sys/compat/linux32/common/linux32_exec.h    |   4 ++--
 sys/compat/netbsd32/netbsd32_exec.h         |   4 ++--
 sys/compat/svr4/svr4_exec.h                 |   4 ++--
 sys/compat/svr4_32/svr4_32_exec.h           |   4 ++--
 sys/kern/exec_subr.c                        |  20 +++++++++++---------
 sys/kern/kern_exec.c                        |   8 ++++----
 sys/sys/exec.h                              |  28 ++++++++++++++--------------
 sys/sys/exec_ecoff.h                        |   4 ++--
 sys/sys/proc.h                              |   4 ++--
 55 files changed, 171 insertions(+), 169 deletions(-)

diffs (truncated from 1441 to 300 lines):

diff -r 398163f8d094 -r f6c317015b5d sys/arch/alpha/alpha/machdep.c
--- a/sys/arch/alpha/alpha/machdep.c    Thu Dec 10 14:10:35 2009 +0000
+++ b/sys/arch/alpha/alpha/machdep.c    Thu Dec 10 14:13:48 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.324 2009/11/27 03:23:04 rmind Exp $ */
+/* $NetBSD: machdep.c,v 1.325 2009/12/10 14:13:48 matt Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.324 2009/11/27 03:23:04 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.325 2009/12/10 14:13:48 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1589,7 +1589,7 @@
  * Set registers on exec.
  */
 void
-setregs(register struct lwp *l, struct exec_package *pack, u_long stack)
+setregs(register struct lwp *l, struct exec_package *pack, vaddr_t stack)
 {
        struct trapframe *tfp = l->l_md.md_tf;
        struct pcb *pcb;
@@ -1779,7 +1779,7 @@
 
 #ifdef EXEC_ECOFF
 void
-cpu_exec_ecoff_setregs(struct lwp *l, struct exec_package *epp, u_long stack)
+cpu_exec_ecoff_setregs(struct lwp *l, struct exec_package *epp, vaddr_t stack)
 {
        struct ecoff_exechdr *execp = (struct ecoff_exechdr *)epp->ep_hdr;
 
diff -r 398163f8d094 -r f6c317015b5d sys/arch/amd64/amd64/machdep.c
--- a/sys/arch/amd64/amd64/machdep.c    Thu Dec 10 14:10:35 2009 +0000
+++ b/sys/arch/amd64/amd64/machdep.c    Thu Dec 10 14:13:48 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.139 2009/11/29 04:15:42 rmind Exp $      */
+/*     $NetBSD: machdep.c,v 1.140 2009/12/10 14:13:48 matt Exp $       */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008
@@ -107,7 +107,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.139 2009/11/29 04:15:42 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.140 2009/12/10 14:13:48 matt Exp $");
 
 /* #define XENDEBUG_LOW  */
 
@@ -996,7 +996,7 @@
  * Clear registers on exec
  */
 void
-setregs(struct lwp *l, struct exec_package *pack, u_long stack)
+setregs(struct lwp *l, struct exec_package *pack, vaddr_t stack)
 {
        struct pcb *pcb = lwp_getpcb(l);
        struct trapframe *tf;
diff -r 398163f8d094 -r f6c317015b5d sys/arch/amd64/amd64/netbsd32_machdep.c
--- a/sys/arch/amd64/amd64/netbsd32_machdep.c   Thu Dec 10 14:10:35 2009 +0000
+++ b/sys/arch/amd64/amd64/netbsd32_machdep.c   Thu Dec 10 14:13:48 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_machdep.c,v 1.60 2009/11/21 03:11:01 rmind Exp $      */
+/*     $NetBSD: netbsd32_machdep.c,v 1.61 2009/12/10 14:13:49 matt Exp $       */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.60 2009/11/21 03:11:01 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.61 2009/12/10 14:13:49 matt Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -126,7 +126,7 @@
 #endif
 
 void
-netbsd32_setregs(struct lwp *l, struct exec_package *pack, u_long stack)
+netbsd32_setregs(struct lwp *l, struct exec_package *pack, vaddr_t stack)
 {
        struct pcb *pcb = lwp_getpcb(l);
        struct trapframe *tf;
diff -r 398163f8d094 -r f6c317015b5d sys/arch/amiga/amiga/machdep.c
--- a/sys/arch/amiga/amiga/machdep.c    Thu Dec 10 14:10:35 2009 +0000
+++ b/sys/arch/amiga/amiga/machdep.c    Thu Dec 10 14:13:48 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.223 2009/12/06 06:41:28 tsutsui Exp $    */
+/*     $NetBSD: machdep.c,v 1.224 2009/12/10 14:13:49 matt Exp $       */
 
 /*
  * Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
@@ -86,7 +86,7 @@
 #include "opt_panicbutton.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.223 2009/12/06 06:41:28 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.224 2009/12/10 14:13:49 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -330,7 +330,7 @@
  * Set registers on exec.
  */
 void
-setregs(struct lwp *l, struct exec_package *pack, u_long stack)
+setregs(struct lwp *l, struct exec_package *pack, vaddr_t stack)
 {
        struct frame *frame = (struct frame *)l->l_md.md_regs;
        struct pcb *pcb = lwp_getpcb(l);
diff -r 398163f8d094 -r f6c317015b5d sys/arch/arm/arm/arm_machdep.c
--- a/sys/arch/arm/arm/arm_machdep.c    Thu Dec 10 14:10:35 2009 +0000
+++ b/sys/arch/arm/arm/arm_machdep.c    Thu Dec 10 14:13:48 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arm_machdep.c,v 1.26 2009/11/21 20:32:17 rmind Exp $   */
+/*     $NetBSD: arm_machdep.c,v 1.27 2009/12/10 14:13:49 matt Exp $    */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -79,7 +79,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: arm_machdep.c,v 1.26 2009/11/21 20:32:17 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arm_machdep.c,v 1.27 2009/12/10 14:13:49 matt Exp $");
 
 #include <sys/exec.h>
 #include <sys/proc.h>
@@ -146,7 +146,7 @@
  */
 
 void
-setregs(struct lwp *l, struct exec_package *pack, u_long stack)
+setregs(struct lwp *l, struct exec_package *pack, vaddr_t stack)
 {
        struct pcb *pcb;
        struct trapframe *tf;
diff -r 398163f8d094 -r f6c317015b5d sys/arch/atari/atari/machdep.c
--- a/sys/arch/atari/atari/machdep.c    Thu Dec 10 14:10:35 2009 +0000
+++ b/sys/arch/atari/atari/machdep.c    Thu Dec 10 14:13:48 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.163 2009/11/23 00:11:43 rmind Exp $      */
+/*     $NetBSD: machdep.c,v 1.164 2009/12/10 14:13:49 matt Exp $       */
 
 /*
  * Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.163 2009/11/23 00:11:43 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.164 2009/12/10 14:13:49 matt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_compat_netbsd.h"
@@ -280,7 +280,7 @@
  * Set registers on exec.
  */
 void
-setregs(struct lwp *l, struct exec_package *pack, u_long stack)
+setregs(struct lwp *l, struct exec_package *pack, vaddr_t stack)
 {
        struct frame *frame = (struct frame *)l->l_md.md_regs;
        struct pcb *pcb = lwp_getpcb(l);
diff -r 398163f8d094 -r f6c317015b5d sys/arch/cesfic/cesfic/machdep.c
--- a/sys/arch/cesfic/cesfic/machdep.c  Thu Dec 10 14:10:35 2009 +0000
+++ b/sys/arch/cesfic/cesfic/machdep.c  Thu Dec 10 14:13:48 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.52 2009/11/23 00:11:43 rmind Exp $       */
+/*     $NetBSD: machdep.c,v 1.53 2009/12/10 14:13:49 matt Exp $        */
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.52 2009/11/23 00:11:43 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.53 2009/12/10 14:13:49 matt Exp $");
 
 #include "opt_bufcache.h"
 #include "opt_ddb.h"
@@ -327,7 +327,7 @@
  * but would break init; should be fixed soon.
  */
 void
-setregs(struct lwp *l, struct exec_package *pack, u_long stack)
+setregs(struct lwp *l, struct exec_package *pack, vaddr_t stack)
 {
        struct frame *frame = (struct frame *)l->l_md.md_regs;
        struct pcb *pcb = lwp_getpcb(l);
diff -r 398163f8d094 -r f6c317015b5d sys/arch/hp300/hp300/machdep.c
--- a/sys/arch/hp300/hp300/machdep.c    Thu Dec 10 14:10:35 2009 +0000
+++ b/sys/arch/hp300/hp300/machdep.c    Thu Dec 10 14:13:48 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.209 2009/11/21 15:36:33 rmind Exp $      */
+/*     $NetBSD: machdep.c,v 1.210 2009/12/10 14:13:49 matt Exp $       */
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.209 2009/11/21 15:36:33 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.210 2009/12/10 14:13:49 matt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_compat_netbsd.h"
@@ -371,7 +371,7 @@
  * Set registers on exec.
  */
 void
-setregs(struct lwp *l, struct exec_package *pack, u_long stack)
+setregs(struct lwp *l, struct exec_package *pack, vaddr_t stack)
 {
        struct frame *frame = (struct frame *)l->l_md.md_regs;
        struct pcb *pcb = lwp_getpcb(l);
diff -r 398163f8d094 -r f6c317015b5d sys/arch/hp300/include/hpux_machdep.h
--- a/sys/arch/hp300/include/hpux_machdep.h     Thu Dec 10 14:10:35 2009 +0000
+++ b/sys/arch/hp300/include/hpux_machdep.h     Thu Dec 10 14:13:48 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hpux_machdep.h,v 1.23 2008/04/28 20:23:19 martin Exp $ */
+/*     $NetBSD: hpux_machdep.h,v 1.24 2009/12/10 14:13:49 matt Exp $   */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
 int    hpux_to_bsd_uoff(int *, int *, struct lwp *);
 
 void   hpux_sendsig(const ksiginfo_t *, const sigset_t *);
-void   hpux_setregs(struct lwp *, struct exec_package *, u_long);
+void   hpux_setregs(struct lwp *, struct exec_package *, vaddr_t);
 #endif /* _KERNEL */
 
 #endif /* ! _HP300_HPUX_MACHDEP_H_ */
diff -r 398163f8d094 -r f6c317015b5d sys/arch/hp700/hp700/machdep.c
--- a/sys/arch/hp700/hp700/machdep.c    Thu Dec 10 14:10:35 2009 +0000
+++ b/sys/arch/hp700/hp700/machdep.c    Thu Dec 10 14:13:48 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.76 2009/12/01 16:20:52 skrll Exp $       */
+/*     $NetBSD: machdep.c,v 1.77 2009/12/10 14:13:49 matt Exp $        */
 
 /*-
  * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.76 2009/12/01 16:20:52 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.77 2009/12/10 14:13:49 matt Exp $");
 
 #include "opt_cputype.h"
 #include "opt_ddb.h"
@@ -1847,7 +1847,7 @@
  * Set registers on exec.
  */
 void
-setregs(struct lwp *l, struct exec_package *pack, u_long stack)
+setregs(struct lwp *l, struct exec_package *pack, vaddr_t stack)
 {
        struct proc *p = l->l_proc;
        struct trapframe *tf = l->l_md.md_regs;
diff -r 398163f8d094 -r f6c317015b5d sys/arch/i386/i386/freebsd_machdep.c
--- a/sys/arch/i386/i386/freebsd_machdep.c      Thu Dec 10 14:10:35 2009 +0000
+++ b/sys/arch/i386/i386/freebsd_machdep.c      Thu Dec 10 14:13:48 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: freebsd_machdep.c,v 1.54 2009/11/21 03:11:00 rmind Exp $       */
+/*     $NetBSD: freebsd_machdep.c,v 1.55 2009/12/10 14:13:50 matt Exp $        */
 
 /*-
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: freebsd_machdep.c,v 1.54 2009/11/21 03:11:00 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: freebsd_machdep.c,v 1.55 2009/12/10 14:13:50 matt Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_vm86.h"
@@ -59,7 +59,7 @@
 #include <compat/freebsd/freebsd_ptrace.h>
 
 void
-freebsd_setregs(struct lwp *l, struct exec_package *epp, u_long stack)
+freebsd_setregs(struct lwp *l, struct exec_package *epp, vaddr_t stack)
 {
        struct pcb *pcb = lwp_getpcb(l);
 
diff -r 398163f8d094 -r f6c317015b5d sys/arch/i386/i386/ibcs2_machdep.c
--- a/sys/arch/i386/i386/ibcs2_machdep.c        Thu Dec 10 14:10:35 2009 +0000
+++ b/sys/arch/i386/i386/ibcs2_machdep.c        Thu Dec 10 14:13:48 2009 +0000



Home | Main Index | Thread Index | Old Index