Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/pgoyette-compat]: src/sys Rework placement of the new netbsd32_machine32...
details: https://anonhg.NetBSD.org/src/rev/050b63b1eed5
branches: pgoyette-compat
changeset: 447789:050b63b1eed5
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Thu Jan 24 04:08:09 2019 +0000
description:
Rework placement of the new netbsd32_machine32_hook
diffstat:
sys/arch/amd64/amd64/netbsd32_machdep.c | 6 ++++--
sys/arch/mips/mips/netbsd32_machdep.c | 5 +++--
sys/arch/sparc64/sparc64/netbsd32_machdep.c | 6 ++++--
sys/compat/linux/common/linux_exec_elf32.c | 6 +++---
sys/compat/netbsd32/netbsd32.h | 4 +++-
sys/compat/netbsd32/netbsd32_mod.c | 6 ++++--
sys/kern/compat_stub.c | 7 +------
sys/sys/compat_stub.h | 7 +------
8 files changed, 23 insertions(+), 24 deletions(-)
diffs (189 lines):
diff -r 652a588c9a0d -r 050b63b1eed5 sys/arch/amd64/amd64/netbsd32_machdep.c
--- a/sys/arch/amd64/amd64/netbsd32_machdep.c Thu Jan 24 03:41:48 2019 +0000
+++ b/sys/arch/amd64/amd64/netbsd32_machdep.c Thu Jan 24 04:08:09 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_machdep.c,v 1.115.2.17 2019/01/24 03:27:23 pgoyette Exp $ */
+/* $NetBSD: netbsd32_machdep.c,v 1.115.2.18 2019/01/24 04:08:09 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.17 2019/01/24 03:27:23 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.115.2.18 2019/01/24 04:08:09 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -969,6 +969,8 @@
return VM_DEFAULT_ADDRESS32_BOTTOMUP(base, sz);
}
+extern struct netbsd32_machine32_hook_t netbsd32_machine32_hook;
+
static const char *
netbsd32_machine32(void)
{
diff -r 652a588c9a0d -r 050b63b1eed5 sys/arch/mips/mips/netbsd32_machdep.c
--- a/sys/arch/mips/mips/netbsd32_machdep.c Thu Jan 24 03:41:48 2019 +0000
+++ b/sys/arch/mips/mips/netbsd32_machdep.c Thu Jan 24 04:08:09 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_machdep.c,v 1.15.2.13 2019/01/24 03:27:23 pgoyette Exp $ */
+/* $NetBSD: netbsd32_machdep.c,v 1.15.2.14 2019/01/24 04:08:09 pgoyette Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.15.2.13 2019/01/24 03:27:23 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.15.2.14 2019/01/24 04:08:09 pgoyette Exp $");
#include "opt_compat_netbsd.h"
#include "opt_coredump.h"
@@ -308,6 +308,7 @@
#endif
struct netbsd32_sendsig_hook_t netbsd32_sendsig_hook;
+extern struct netbsd32_machine32_hook_t netbsd32_machine32_hook;
void
netbsd32_sendsig(const ksiginfo_t *ksi, const sigset_t *mask)
diff -r 652a588c9a0d -r 050b63b1eed5 sys/arch/sparc64/sparc64/netbsd32_machdep.c
--- a/sys/arch/sparc64/sparc64/netbsd32_machdep.c Thu Jan 24 03:41:48 2019 +0000
+++ b/sys/arch/sparc64/sparc64/netbsd32_machdep.c Thu Jan 24 04:08:09 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_machdep.c,v 1.110.14.6 2019/01/24 03:27:24 pgoyette Exp $ */
+/* $NetBSD: netbsd32_machdep.c,v 1.110.14.7 2019/01/24 04:08:09 pgoyette Exp $ */
/*
* Copyright (c) 1998, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.110.14.6 2019/01/24 03:27:24 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.110.14.7 2019/01/24 04:08:09 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -1023,6 +1023,8 @@
return machine32;
}
+extern struct netbsd32_machine32_hook_t netbsd32_machine32_hook;
+
void
netbsd32_machdep_md_init(void)
{
diff -r 652a588c9a0d -r 050b63b1eed5 sys/compat/linux/common/linux_exec_elf32.c
--- a/sys/compat/linux/common/linux_exec_elf32.c Thu Jan 24 03:41:48 2019 +0000
+++ b/sys/compat/linux/common/linux_exec_elf32.c Thu Jan 24 04:08:09 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_exec_elf32.c,v 1.94.12.2 2019/01/24 03:27:24 pgoyette Exp $ */
+/* $NetBSD: linux_exec_elf32.c,v 1.94.12.3 2019/01/24 04:08:09 pgoyette Exp $ */
/*-
* Copyright (c) 1995, 1998, 2000, 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_exec_elf32.c,v 1.94.12.2 2019/01/24 03:27:24 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_exec_elf32.c,v 1.94.12.3 2019/01/24 04:08:09 pgoyette Exp $");
#ifndef ELFSIZE
/* XXX should die */
@@ -335,7 +335,7 @@
goto out;
#if (ELFSIZE == 32)
- MODULE_HOOK_CALL(netbsd32_machine32_hook, (), machine, m);
+ MODULE_CALL_HOOK(netbsd32_machine32_hook, (), machine, m);
#else
m = machine;
#endif
diff -r 652a588c9a0d -r 050b63b1eed5 sys/compat/netbsd32/netbsd32.h
--- a/sys/compat/netbsd32/netbsd32.h Thu Jan 24 03:41:48 2019 +0000
+++ b/sys/compat/netbsd32/netbsd32.h Thu Jan 24 04:08:09 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32.h,v 1.116.2.17 2019/01/14 13:34:27 pgoyette Exp $ */
+/* $NetBSD: netbsd32.h,v 1.116.2.18 2019/01/24 04:08:09 pgoyette Exp $ */
/*
* Copyright (c) 1998, 2001, 2008, 2015 Matthew R. Green
@@ -1177,6 +1177,8 @@
MODULE_HOOK(netbsd32_sendsig_hook, void,
(const ksiginfo_t *, const sigset_t *));
+MODULE_HOOK(netbsd32_machine32_hook, const char *, (void));
+
extern struct sysent netbsd32_sysent[];
extern const uint32_t netbsd32_sysent_nomodbits[];
#ifdef SYSCALL_DEBUG
diff -r 652a588c9a0d -r 050b63b1eed5 sys/compat/netbsd32/netbsd32_mod.c
--- a/sys/compat/netbsd32/netbsd32_mod.c Thu Jan 24 03:41:48 2019 +0000
+++ b/sys/compat/netbsd32/netbsd32_mod.c Thu Jan 24 04:08:09 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_mod.c,v 1.13.16.17 2018/12/26 14:01:46 pgoyette Exp $ */
+/* $NetBSD: netbsd32_mod.c,v 1.13.16.18 2019/01/24 04:08:09 pgoyette Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_mod.c,v 1.13.16.17 2018/12/26 14:01:46 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_mod.c,v 1.13.16.18 2019/01/24 04:08:09 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_execfmt.h"
@@ -54,6 +54,8 @@
sizeof(Elf32_Addr)) + MAXPATHLEN + ALIGN(1))
struct compat32_80_modctl_hook_t compat32_80_modctl_hook;
+struct netbsd32_machine32_hook_t netbsd32_machine32_hook;
+
# define DEPS1 "ksem,coredump,compat_util"
diff -r 652a588c9a0d -r 050b63b1eed5 sys/kern/compat_stub.c
--- a/sys/kern/compat_stub.c Thu Jan 24 03:41:48 2019 +0000
+++ b/sys/kern/compat_stub.c Thu Jan 24 04:08:09 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_stub.c,v 1.1.2.40 2019/01/24 03:27:24 pgoyette Exp $ */
+/* $NetBSD: compat_stub.c,v 1.1.2.41 2019/01/24 04:08:09 pgoyette Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -247,8 +247,3 @@
* Hook for sysvipc50_sysctl
*/
struct sysvipc50_sysctl_hook_t sysvipc50_sysctl_hook;
-
-/*
- * Hook for compat32_machine32
- */
-struct netbsd32_machine32_hook_t netbsd32_machine32_hook;
diff -r 652a588c9a0d -r 050b63b1eed5 sys/sys/compat_stub.h
--- a/sys/sys/compat_stub.h Thu Jan 24 03:41:48 2019 +0000
+++ b/sys/sys/compat_stub.h Thu Jan 24 04:08:09 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_stub.h,v 1.1.2.53 2019/01/24 03:27:24 pgoyette Exp $ */
+/* $NetBSD: compat_stub.h,v 1.1.2.54 2019/01/24 04:08:09 pgoyette Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -308,9 +308,4 @@
#include <sys/sysctl.h>
MODULE_HOOK(sysvipc50_sysctl_hook, int, (SYSCTLFN_PROTO));
-/*
- * Hook for compat32_machine32
- */
-MODULE_HOOK(netbsd32_machine32_hook, const char *, (void));
-
#endif /* _SYS_COMPAT_STUB_H */
Home |
Main Index |
Thread Index |
Old Index