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 Allocate the netbsd32_sendsig...



details:   https://anonhg.NetBSD.org/src/rev/db303fda3605
branches:  pgoyette-compat
changeset: 830828:db303fda3605
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sat Sep 29 07:34:12 2018 +0000

description:
Allocate the netbsd32_sendsig_hook in the main compat_netbsd32 code
(where it call be called) and not in a subsidiary module which may
not even exist.

diffstat:

 sys/arch/amd64/amd64/netbsd32_machdep.c    |  6 ++++--
 sys/arch/amd64/amd64/netbsd32_machdep_16.c |  6 +++---
 2 files changed, 7 insertions(+), 5 deletions(-)

diffs (54 lines):

diff -r 29fe7e0eaf1a -r db303fda3605 sys/arch/amd64/amd64/netbsd32_machdep.c
--- a/sys/arch/amd64/amd64/netbsd32_machdep.c   Sat Sep 29 07:13:01 2018 +0000
+++ b/sys/arch/amd64/amd64/netbsd32_machdep.c   Sat Sep 29 07:34:12 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_machdep.c,v 1.115.2.9 2018/09/29 06:19:42 pgoyette Exp $      */
+/*     $NetBSD: netbsd32_machdep.c,v 1.115.2.10 2018/09/29 07:34:12 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.9 2018/09/29 06:19:42 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.115.2.10 2018/09/29 07:34:12 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -273,6 +273,8 @@
        return 0;
 }
 
+struct netbsd32_sendsig_hook_t netbsd32_sendsig_hook;
+
 MODULE_CALL_HOOK_DECL(netbsd32_sendsig_hook, f,
     (const ksiginfo_t *ksi, const sigset_t *mask), (ksi, mask),
     netbsd32_sendsig_siginfo(ksi, mask));
diff -r 29fe7e0eaf1a -r db303fda3605 sys/arch/amd64/amd64/netbsd32_machdep_16.c
--- a/sys/arch/amd64/amd64/netbsd32_machdep_16.c        Sat Sep 29 07:13:01 2018 +0000
+++ b/sys/arch/amd64/amd64/netbsd32_machdep_16.c        Sat Sep 29 07:34:12 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_machdep_16.c,v 1.1.2.8 2018/09/29 07:13:01 pgoyette Exp $     */
+/*     $NetBSD: netbsd32_machdep_16.c,v 1.1.2.9 2018/09/29 07:34:12 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.8 2018/09/29 07:13:01 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep_16.c,v 1.1.2.9 2018/09/29 07:34:12 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -86,7 +86,7 @@
 
 int netbsd32_sendsig_16(const ksiginfo_t *, const sigset_t *);
 
-struct netbsd32_sendsig_hook_t netbsd32_sendsig_hook;
+extern struct netbsd32_sendsig_hook_t netbsd32_sendsig_hook;
 
 static void
 netbsd32_sendsig_sigcontext(const ksiginfo_t *ksi, const sigset_t *mask)



Home | Main Index | Thread Index | Old Index