From f998a5342020b4c92fa4ba730c688df53a795c72 Mon Sep 17 00:00:00 2001 From: Dmitrij Tejblum Date: Tue, 20 Apr 1999 22:53:54 +0000 Subject: [PATCH] Added consts to cpu_set_fork_handler prototype. (Follow i386 version.) --- sys/alpha/alpha/vm_machdep.c | 6 +++--- sys/alpha/include/cpu.h | 4 ++-- sys/powerpc/aim/vm_machdep.c | 6 +++--- sys/powerpc/powerpc/vm_machdep.c | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/sys/alpha/alpha/vm_machdep.c b/sys/alpha/alpha/vm_machdep.c index 37fce542203e..89ee4e32f9c1 100644 --- a/sys/alpha/alpha/vm_machdep.c +++ b/sys/alpha/alpha/vm_machdep.c @@ -38,7 +38,7 @@ * * from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91 * Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$ - * $Id: vm_machdep.c,v 1.11 1999/02/08 02:42:12 dillon Exp $ + * $Id: vm_machdep.c,v 1.12 1999/04/19 14:14:12 peter Exp $ */ /* * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. @@ -219,8 +219,8 @@ cpu_fork(p1, p2) void cpu_set_fork_handler(p, func, arg) struct proc *p; - void (*func) __P((void *)); - void *arg; + void (*func) __P((const void *)); + const void *arg; { /* * Note that the trap frame follows the args, so the function diff --git a/sys/alpha/include/cpu.h b/sys/alpha/include/cpu.h index e4cf206ed0db..990f9228952f 100644 --- a/sys/alpha/include/cpu.h +++ b/sys/alpha/include/cpu.h @@ -1,4 +1,4 @@ -/* $Id: cpu.h,v 1.4 1998/10/06 08:40:17 dfr Exp $ */ +/* $Id: cpu.h,v 1.5 1999/02/02 09:08:23 bde Exp $ */ /* From: NetBSD: cpu.h,v 1.18 1997/09/23 23:17:49 mjacob Exp */ /* @@ -174,7 +174,7 @@ void switch_trampoline __P((void)); /* MAGIC */ void syscall __P((u_int64_t, struct trapframe *)); void trap __P((unsigned long, unsigned long, unsigned long, unsigned long, struct trapframe *)); -void cpu_set_fork_handler __P((struct proc *, void (*pc)(void *), void *)); +void cpu_set_fork_handler __P((struct proc *, void (*pc)(const void *), const void *)); #endif /* _KERNEL */ diff --git a/sys/powerpc/aim/vm_machdep.c b/sys/powerpc/aim/vm_machdep.c index 37fce542203e..89ee4e32f9c1 100644 --- a/sys/powerpc/aim/vm_machdep.c +++ b/sys/powerpc/aim/vm_machdep.c @@ -38,7 +38,7 @@ * * from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91 * Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$ - * $Id: vm_machdep.c,v 1.11 1999/02/08 02:42:12 dillon Exp $ + * $Id: vm_machdep.c,v 1.12 1999/04/19 14:14:12 peter Exp $ */ /* * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. @@ -219,8 +219,8 @@ cpu_fork(p1, p2) void cpu_set_fork_handler(p, func, arg) struct proc *p; - void (*func) __P((void *)); - void *arg; + void (*func) __P((const void *)); + const void *arg; { /* * Note that the trap frame follows the args, so the function diff --git a/sys/powerpc/powerpc/vm_machdep.c b/sys/powerpc/powerpc/vm_machdep.c index 37fce542203e..89ee4e32f9c1 100644 --- a/sys/powerpc/powerpc/vm_machdep.c +++ b/sys/powerpc/powerpc/vm_machdep.c @@ -38,7 +38,7 @@ * * from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91 * Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$ - * $Id: vm_machdep.c,v 1.11 1999/02/08 02:42:12 dillon Exp $ + * $Id: vm_machdep.c,v 1.12 1999/04/19 14:14:12 peter Exp $ */ /* * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. @@ -219,8 +219,8 @@ cpu_fork(p1, p2) void cpu_set_fork_handler(p, func, arg) struct proc *p; - void (*func) __P((void *)); - void *arg; + void (*func) __P((const void *)); + const void *arg; { /* * Note that the trap frame follows the args, so the function