Source-Changes-HG archive

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

[src/trunk]: src/sys Declare the second arg of process_write_{fp, }regs() to b...



details:   https://anonhg.NetBSD.org/src/rev/c616a511b8bb
branches:  trunk
changeset: 581404:c616a511b8bb
user:      scw <scw%NetBSD.org@localhost>
date:      Wed Jun 01 13:01:35 2005 +0000

description:
Declare the second arg of process_write_{fp,}regs() to be const.
This permits sh5 to continue to re-use those functions in cpu_setmcontext()
with the recent change to Makefile.kern.inc (revision 1.62).

diffstat:

 sys/arch/alpha/alpha/process_machdep.c      |   8 ++++----
 sys/arch/amd64/amd64/process_machdep.c      |   8 ++++----
 sys/arch/arm/arm/process_machdep.c          |   8 ++++----
 sys/arch/arm/fpe-arm/armfpe.h               |   6 +++---
 sys/arch/arm/fpe-arm/armfpe_init.c          |   8 ++++----
 sys/arch/hppa/hppa/process_machdep.c        |   8 ++++----
 sys/arch/i386/i386/process_machdep.c        |   8 ++++----
 sys/arch/m68k/m68k/process_machdep.c        |   8 ++++----
 sys/arch/mips/mips/process_machdep.c        |   8 ++++----
 sys/arch/pc532/pc532/process_machdep.c      |   8 ++++----
 sys/arch/pdp10/pdp10/machdep.c              |   4 ++--
 sys/arch/powerpc/powerpc/process_machdep.c  |   8 ++++----
 sys/arch/sh3/sh3/process_machdep.c          |   6 +++---
 sys/arch/sh5/include/reg.h                  |   6 +++---
 sys/arch/sh5/sh5/process_machdep.c          |   8 ++++----
 sys/arch/sh5/sh5/sig_machdep.c              |   9 +++++----
 sys/arch/sparc/sparc/process_machdep.c      |   8 ++++----
 sys/arch/sparc64/sparc64/netbsd32_machdep.c |  12 ++++++------
 sys/arch/sparc64/sparc64/process_machdep.c  |  12 ++++++------
 sys/arch/vax/vax/machdep.c                  |   6 +++---
 sys/sys/ptrace.h                            |   6 +++---
 21 files changed, 82 insertions(+), 81 deletions(-)

diffs (truncated from 685 to 300 lines):

diff -r b709e8392c72 -r c616a511b8bb sys/arch/alpha/alpha/process_machdep.c
--- a/sys/arch/alpha/alpha/process_machdep.c    Wed Jun 01 12:58:13 2005 +0000
+++ b/sys/arch/alpha/alpha/process_machdep.c    Wed Jun 01 13:01:35 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: process_machdep.c,v 1.21 2003/09/21 15:14:51 skd Exp $ */
+/* $NetBSD: process_machdep.c,v 1.22 2005/06/01 13:01:35 scw Exp $ */
 
 /*
  * Copyright (c) 1994 Christopher G. Demetriou
@@ -54,7 +54,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.21 2003/09/21 15:14:51 skd Exp $");
+__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.22 2005/06/01 13:01:35 scw Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -84,7 +84,7 @@
 }
 
 int
-process_write_regs(struct lwp *l, struct reg *regs)
+process_write_regs(struct lwp *l, const struct reg *regs)
 {
 
        regtoframe(regs, lwp_frame(l));
@@ -124,7 +124,7 @@
 }
 
 int
-process_write_fpregs(struct lwp *l, struct fpreg *regs)
+process_write_fpregs(struct lwp *l, const struct fpreg *regs)
 {
 
        if (l->l_addr->u_pcb.pcb_fpcpu != NULL)
diff -r b709e8392c72 -r c616a511b8bb sys/arch/amd64/amd64/process_machdep.c
--- a/sys/arch/amd64/amd64/process_machdep.c    Wed Jun 01 12:58:13 2005 +0000
+++ b/sys/arch/amd64/amd64/process_machdep.c    Wed Jun 01 13:01:35 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: process_machdep.c,v 1.5 2005/05/15 21:37:46 fvdl Exp $ */
+/*     $NetBSD: process_machdep.c,v 1.6 2005/06/01 13:01:36 scw Exp $  */
 
 /*-
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.5 2005/05/15 21:37:46 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.6 2005/06/01 13:01:36 scw Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -150,7 +150,7 @@
 int
 process_write_regs(l, regp)
        struct lwp *l;
-       struct reg *regp;
+       const struct reg *regp;
 {
        struct trapframe *tf = process_frame(l);
        int error;
@@ -173,7 +173,7 @@
 int
 process_write_fpregs(l, regs)
        struct lwp *l;
-       struct fpreg *regs;
+       const struct fpreg *regs;
 {
        struct fxsave64 *frame = process_fpframe(l);
 
diff -r b709e8392c72 -r c616a511b8bb sys/arch/arm/arm/process_machdep.c
--- a/sys/arch/arm/arm/process_machdep.c        Wed Jun 01 12:58:13 2005 +0000
+++ b/sys/arch/arm/arm/process_machdep.c        Wed Jun 01 13:01:35 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: process_machdep.c,v 1.13 2004/08/21 11:52:25 rearnsha Exp $    */
+/*     $NetBSD: process_machdep.c,v 1.14 2005/06/01 13:01:35 scw Exp $ */
 
 /*
  * Copyright (c) 1993 The Regents of the University of California.
@@ -133,7 +133,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.13 2004/08/21 11:52:25 rearnsha Exp $");
+__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.14 2005/06/01 13:01:35 scw Exp $");
 
 #include <sys/proc.h>
 #include <sys/ptrace.h>
@@ -196,7 +196,7 @@
 }
 
 int
-process_write_regs(struct lwp *l, struct reg *regs)
+process_write_regs(struct lwp *l, const struct reg *regs)
 {
        struct trapframe *tf = process_frame(l);
 
@@ -228,7 +228,7 @@
 }
 
 int
-process_write_fpregs(struct lwp *l,  struct fpreg *regs)
+process_write_fpregs(struct lwp *l, const struct fpreg *regs)
 {
 #ifdef ARMFPE
        arm_fpe_setcontext(p, regs);
diff -r b709e8392c72 -r c616a511b8bb sys/arch/arm/fpe-arm/armfpe.h
--- a/sys/arch/arm/fpe-arm/armfpe.h     Wed Jun 01 12:58:13 2005 +0000
+++ b/sys/arch/arm/fpe-arm/armfpe.h     Wed Jun 01 13:01:35 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: armfpe.h,v 1.2 2002/03/10 15:29:54 bjh21 Exp $ */
+/*     $NetBSD: armfpe.h,v 1.3 2005/06/01 13:01:35 scw Exp $   */
 
 /*
  * Copyright (c) 1995 Neil A Carson.
@@ -124,10 +124,10 @@
 void arm_fpe_core_activatecontext      __P((u_int context));
 u_int arm_fpe_core_deactivatecontext   __P((void));
 u_int arm_fpe_core_savecontext __P((u_int context, fp_context_frame_t *savearea, int pc));
-void arm_fpe_core_loadcontext  __P((u_int context, fp_context_frame_t *loadarea));
+void arm_fpe_core_loadcontext  __P((u_int context, const fp_context_frame_t *loadarea));
 void arm_fpe_copycontext       __P((u_int c1, u_int c2));
 void arm_fpe_getcontext                __P((struct proc *p, struct fpreg *fpregs));
-void arm_fpe_setcontext                __P((struct proc *p, struct fpreg *fpregs));
+void arm_fpe_setcontext                __P((struct proc *p, const struct fpreg *fpregs));
 
 void arm_fpe_exception_glue    __P((int exception));
 void arm_fpe_panic             __P((void));
diff -r b709e8392c72 -r c616a511b8bb sys/arch/arm/fpe-arm/armfpe_init.c
--- a/sys/arch/arm/fpe-arm/armfpe_init.c        Wed Jun 01 12:58:13 2005 +0000
+++ b/sys/arch/arm/fpe-arm/armfpe_init.c        Wed Jun 01 13:01:35 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: armfpe_init.c,v 1.7 2004/02/13 11:36:11 wiz Exp $      */
+/*     $NetBSD: armfpe_init.c,v 1.8 2005/06/01 13:01:35 scw Exp $      */
 
 /*
  * Copyright (C) 1996 Mark Brinicombe
@@ -43,7 +43,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: armfpe_init.c,v 1.7 2004/02/13 11:36:11 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: armfpe_init.c,v 1.8 2005/06/01 13:01:35 scw Exp $");
 
 #include <sys/systm.h>
 #include <sys/proc.h>
@@ -268,9 +268,9 @@
 
 void arm_fpe_setcontext(p, fpregs)
        struct proc *p;
-       struct fpreg *fpregs;
+       const struct fpreg *fpregs;
 {
-       arm_fpe_core_loadcontext(FP_CONTEXT(p), (fp_context_frame_t *)fpregs);
+       arm_fpe_core_loadcontext(FP_CONTEXT(p), (const fp_context_frame_t *)fpregs);
 }
 
 /* End of armfpe_init.c */
diff -r b709e8392c72 -r c616a511b8bb sys/arch/hppa/hppa/process_machdep.c
--- a/sys/arch/hppa/hppa/process_machdep.c      Wed Jun 01 12:58:13 2005 +0000
+++ b/sys/arch/hppa/hppa/process_machdep.c      Wed Jun 01 13:01:35 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: process_machdep.c,v 1.5 2005/05/01 19:18:39 chs Exp $  */
+/*     $NetBSD: process_machdep.c,v 1.6 2005/06/01 13:01:35 scw Exp $  */
 
 /*     $OpenBSD: process_machdep.c,v 1.3 1999/06/18 05:19:52 mickey Exp $      */
 
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.5 2005/05/01 19:18:39 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.6 2005/06/01 13:01:35 scw Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -53,7 +53,7 @@
 }
 
 int
-process_write_regs(struct lwp *l, struct reg *regs)
+process_write_regs(struct lwp *l, const struct reg *regs)
 {
        bcopy(&regs[1], &l->l_md.md_regs->tf_r1,
            sizeof(*regs) - sizeof(*regs));
@@ -71,7 +71,7 @@
 }
 
 int
-process_write_fpregs(struct lwp *l, struct fpreg *fpregs)
+process_write_fpregs(struct lwp *l, const struct fpreg *fpregs)
 {
        hppa_fpu_flush(l);
        bcopy(fpregs, l->l_addr->u_pcb.pcb_fpregs, sizeof(*fpregs));
diff -r b709e8392c72 -r c616a511b8bb sys/arch/i386/i386/process_machdep.c
--- a/sys/arch/i386/i386/process_machdep.c      Wed Jun 01 12:58:13 2005 +0000
+++ b/sys/arch/i386/i386/process_machdep.c      Wed Jun 01 13:01:35 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: process_machdep.c,v 1.51 2004/01/28 10:48:55 yamt Exp $        */
+/*     $NetBSD: process_machdep.c,v 1.52 2005/06/01 13:01:35 scw Exp $ */
 
 /*-
  * Copyright (c) 1998, 2000, 2001 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.51 2004/01/28 10:48:55 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.52 2005/06/01 13:01:35 scw Exp $");
 
 #include "opt_vm86.h"
 #include "npx.h"
@@ -295,7 +295,7 @@
 }
 
 int
-process_write_regs(struct lwp *l, struct reg *regs)
+process_write_regs(struct lwp *l, const struct reg *regs)
 {
        struct trapframe *tf = process_frame(l);
 
@@ -350,7 +350,7 @@
 }
 
 int
-process_write_fpregs(struct lwp *l, struct fpreg *regs)
+process_write_fpregs(struct lwp *l, const struct fpreg *regs)
 {
        union savefpu *frame = process_fpframe(l);
 
diff -r b709e8392c72 -r c616a511b8bb sys/arch/m68k/m68k/process_machdep.c
--- a/sys/arch/m68k/m68k/process_machdep.c      Wed Jun 01 12:58:13 2005 +0000
+++ b/sys/arch/m68k/m68k/process_machdep.c      Wed Jun 01 13:01:35 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: process_machdep.c,v 1.22 2004/08/28 22:06:28 thorpej Exp $     */
+/*     $NetBSD: process_machdep.c,v 1.23 2005/06/01 13:01:35 scw Exp $ */
 
 /*
  * Copyright (c) 1993 Christopher G. Demetriou
@@ -53,7 +53,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.22 2004/08/28 22:06:28 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.23 2005/06/01 13:01:35 scw Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -107,7 +107,7 @@
 }
 
 int
-process_write_regs(struct lwp *l, struct reg *regs)
+process_write_regs(struct lwp *l, const struct reg *regs)
 {
        struct frame *frame = process_frame(l);
 
@@ -138,7 +138,7 @@
 }
 
 int
-process_write_fpregs(struct lwp *l, struct fpreg *regs)
+process_write_fpregs(struct lwp *l, const struct fpreg *regs)
 {
        struct fpframe *frame = process_fpframe(l);
 
diff -r b709e8392c72 -r c616a511b8bb sys/arch/mips/mips/process_machdep.c
--- a/sys/arch/mips/mips/process_machdep.c      Wed Jun 01 12:58:13 2005 +0000
+++ b/sys/arch/mips/mips/process_machdep.c      Wed Jun 01 13:01:35 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: process_machdep.c,v 1.25 2005/01/01 03:25:46 simonb Exp $      */
+/*     $NetBSD: process_machdep.c,v 1.26 2005/06/01 13:01:35 scw Exp $ */
 
 /*
  * Copyright (c) 1993 The Regents of the University of California.
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.25 2005/01/01 03:25:46 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.26 2005/06/01 13:01:35 scw Exp $");
 
 /*
  * This file may seem a bit stylized, but that so that it's easier to port.
@@ -117,7 +117,7 @@
 }
 
 int
-process_write_regs(struct lwp *l, struct reg *regs)
+process_write_regs(struct lwp *l, const struct reg *regs)
 {
        struct frame *f;
        mips_reg_t sr;
@@ -140,7 +140,7 @@
 }
 
 int
-process_write_fpregs(struct lwp *l, struct fpreg *regs)



Home | Main Index | Thread Index | Old Index