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 netbsd32_sendsig_sig...



details:   https://anonhg.NetBSD.org/src/rev/39cf34cdf597
branches:  pgoyette-compat
changeset: 830786:39cf34cdf597
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Sep 24 23:37:59 2018 +0000

description:
Make the netbsd32_sendsig_siginfo() routine return an int, to conform
to the MP-safe HOOKs mechanism.

diffstat:

 sys/arch/amd64/amd64/netbsd32_machdep.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r f06bb1ffe091 -r 39cf34cdf597 sys/arch/amd64/amd64/netbsd32_machdep.c
--- a/sys/arch/amd64/amd64/netbsd32_machdep.c   Mon Sep 24 23:28:55 2018 +0000
+++ b/sys/arch/amd64/amd64/netbsd32_machdep.c   Mon Sep 24 23:37:59 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_machdep.c,v 1.115.2.5 2018/09/24 23:25:24 pgoyette Exp $      */
+/*     $NetBSD: netbsd32_machdep.c,v 1.115.2.6 2018/09/24 23:37:59 pgoyette Exp $      */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.115.2.5 2018/09/24 23:25:24 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.115.2.6 2018/09/24 23:37:59 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -202,7 +202,7 @@
        }
 }
 
-void
+int
 netbsd32_sendsig_siginfo(const ksiginfo_t *ksi, const sigset_t *mask)
 {
        struct lwp *l = curlwp;
@@ -268,6 +268,8 @@
        }
 
        netbsd32_buildcontext(l, tf, fp, catcher, onstack);
+
+       return 0;
 }
 
 MODULE_CALL_HOOK_DECL(netbsd32_sendsig_hook, f,



Home | Main Index | Thread Index | Old Index