Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern kern/exec_elf.c: Get emul_netbsd from sys/proc.h.



details:   https://anonhg.NetBSD.org/src/rev/2a6b603be61f
branches:  trunk
changeset: 372054:2a6b603be61f
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Oct 26 23:20:36 2022 +0000

description:
kern/exec_elf.c: Get emul_netbsd from sys/proc.h.

diffstat:

 sys/kern/exec_elf.c  |  6 ++----
 sys/kern/kern_proc.c |  6 ++----
 2 files changed, 4 insertions(+), 8 deletions(-)

diffs (54 lines):

diff -r 371f1f98b66c -r 2a6b603be61f sys/kern/exec_elf.c
--- a/sys/kern/exec_elf.c       Wed Oct 26 22:14:22 2022 +0000
+++ b/sys/kern/exec_elf.c       Wed Oct 26 23:20:36 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_elf.c,v 1.103 2022/06/08 10:12:42 rin Exp $       */
+/*     $NetBSD: exec_elf.c,v 1.104 2022/10/26 23:20:36 riastradh Exp $ */
 
 /*-
  * Copyright (c) 1994, 2000, 2005, 2015, 2020 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.103 2022/06/08 10:12:42 rin Exp $");
+__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.104 2022/10/26 23:20:36 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_pax.h"
@@ -85,8 +85,6 @@
 #include <sys/pax.h>
 #include <uvm/uvm_param.h>
 
-extern struct emul emul_netbsd;
-
 #define elf_check_header       ELFNAME(check_header)
 #define elf_copyargs           ELFNAME(copyargs)
 #define elf_populate_auxv      ELFNAME(populate_auxv)
diff -r 371f1f98b66c -r 2a6b603be61f sys/kern/kern_proc.c
--- a/sys/kern/kern_proc.c      Wed Oct 26 22:14:22 2022 +0000
+++ b/sys/kern/kern_proc.c      Wed Oct 26 23:20:36 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_proc.c,v 1.268 2022/07/01 01:06:40 riastradh Exp $        */
+/*     $NetBSD: kern_proc.c,v 1.269 2022/10/26 23:20:36 riastradh Exp $        */
 
 /*-
  * Copyright (c) 1999, 2006, 2007, 2008, 2020 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.268 2022/07/01 01:06:40 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.269 2022/10/26 23:20:36 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_kstack.h"
@@ -185,8 +185,6 @@
 
 /* Components of the first process -- never freed. */
 
-extern struct emul emul_netbsd;        /* defined in kern_exec.c */
-
 struct session session0 = {
        .s_count = 1,
        .s_sid = 0,



Home | Main Index | Thread Index | Old Index