diff --git a/sys/arch/powerpc/powerpc/compat_16_machdep.c b/sys/arch/powerpc/powerpc/compat_16_machdep.c index 0c5b610744de..d56d6a1abd5e 100644 --- a/sys/arch/powerpc/powerpc/compat_16_machdep.c +++ b/sys/arch/powerpc/powerpc/compat_16_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: compat_16_machdep.c,v 1.11 2008/04/24 18:39:21 ad Exp $ */ +/* $NetBSD: compat_16_machdep.c,v 1.12 2008/11/21 20:21:12 he Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -32,11 +32,13 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.11 2008/04/24 18:39:21 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.12 2008/11/21 20:21:12 he Exp $"); +#ifdef _KERNEL_OPT #include "opt_compat_netbsd.h" #include "opt_altivec.h" #include "opt_ppcarch.h" +#endif #include #include @@ -55,7 +57,7 @@ __KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.11 2008/04/24 18:39:21 ad Ex * Send a signal to process. */ void -sendsig_sigcontext(int sig, const sigset_t *mask, u_long code) +sendsig_sigcontext(const ksiginfo_t *ksi, const sigset_t *mask) { struct lwp *l = curlwp; struct proc *p = l->l_proc; @@ -64,6 +66,8 @@ sendsig_sigcontext(int sig, const sigset_t *mask, u_long code) struct trapframe *tf; struct utrapframe *utf = &frame.sc_frame; int onstack, error; + int sig = ksi->ksi_signo; + u_long code = KSI_TRAPCODE(ksi); sig_t catcher = SIGACTION(p, sig).sa_handler; tf = trapframe(l);