Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/pgoyette-compat]: src/sys/arch/amd64/amd64 Make the replacement/hook fun...
details: https://anonhg.NetBSD.org/src/rev/099b035cef9c
branches: pgoyette-compat
changeset: 830790:099b035cef9c
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Tue Sep 25 01:15:27 2018 +0000
description:
Make the replacement/hook function return an int, to match the
expectations of the MP-safe HOOK mechanism.
diffstat:
sys/arch/amd64/amd64/netbsd32_machdep_16.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (44 lines):
diff -r 5ba50e3612b7 -r 099b035cef9c sys/arch/amd64/amd64/netbsd32_machdep_16.c
--- a/sys/arch/amd64/amd64/netbsd32_machdep_16.c Tue Sep 25 00:53:59 2018 +0000
+++ b/sys/arch/amd64/amd64/netbsd32_machdep_16.c Tue Sep 25 01:15:27 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_machdep_16.c,v 1.1.2.5 2018/09/25 00:53:59 pgoyette Exp $ */
+/* $NetBSD: netbsd32_machdep_16.c,v 1.1.2.6 2018/09/25 01:15:27 pgoyette Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep_16.c,v 1.1.2.5 2018/09/25 00:53:59 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep_16.c,v 1.1.2.6 2018/09/25 01:15:27 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -84,7 +84,7 @@
int check_sigcontext32(struct lwp *, const struct netbsd32_sigcontext *);
-void netbsd32_sendsig_16(const ksiginfo_t *, const sigset_t *);
+int netbsd32_sendsig_16(const ksiginfo_t *, const sigset_t *);
struct netbsd32_sendsig_hook_t netbsd32_sendsig_hook;
@@ -175,13 +175,15 @@
netbsd32_buildcontext(l, tf, fp, catcher, onstack);
}
-void
+int
netbsd32_sendsig_16(const ksiginfo_t *ksi, const sigset_t *mask)
{
if (curproc->p_sigacts->sa_sigdesc[ksi->ksi_signo].sd_vers < 2)
netbsd32_sendsig_sigcontext(ksi, mask);
else
netbsd32_sendsig_siginfo(ksi, mask);
+
+ return 0;
}
int
Home |
Main Index |
Thread Index |
Old Index