Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/aout make LKM safe
details: https://anonhg.NetBSD.org/src/rev/5a3f8d6c88a6
branches: trunk
changeset: 500142:5a3f8d6c88a6
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Wed Dec 06 21:02:00 2000 +0000
description:
make LKM safe
diffstat:
sys/compat/aout/aout_exec.c | 4 +++-
sys/compat/aout/aout_misc.c | 4 +++-
sys/compat/aout/syscalls.master | 4 +++-
3 files changed, 9 insertions(+), 3 deletions(-)
diffs (69 lines):
diff -r 1c55d489a040 -r 5a3f8d6c88a6 sys/compat/aout/aout_exec.c
--- a/sys/compat/aout/aout_exec.c Wed Dec 06 18:57:37 2000 +0000
+++ b/sys/compat/aout/aout_exec.c Wed Dec 06 21:02:00 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aout_exec.c,v 1.6 2000/12/01 19:12:11 jdolecek Exp $ */
+/* $NetBSD: aout_exec.c,v 1.7 2000/12/06 21:02:00 jdolecek Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -36,7 +36,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#if defined(_KERNEL) && !defined(_LKM)
#include "opt_syscall_debug.h"
+#endif
#include <sys/param.h>
#include <sys/systm.h>
diff -r 1c55d489a040 -r 5a3f8d6c88a6 sys/compat/aout/aout_misc.c
--- a/sys/compat/aout/aout_misc.c Wed Dec 06 18:57:37 2000 +0000
+++ b/sys/compat/aout/aout_misc.c Wed Dec 06 21:02:00 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aout_misc.c,v 1.4 2000/12/01 12:28:31 jdolecek Exp $ */
+/* $NetBSD: aout_misc.c,v 1.5 2000/12/06 21:02:00 jdolecek Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -36,6 +36,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#if defined(_KERNEL) && !defined(_LKM)
#include "opt_ktrace.h"
#include "opt_nfsserver.h"
#include "opt_compat_netbsd.h"
@@ -44,6 +45,7 @@
#include "fs_lfs.h"
#include "fs_nfs.h"
+#endif
#include <sys/param.h>
#include <sys/systm.h>
diff -r 1c55d489a040 -r 5a3f8d6c88a6 sys/compat/aout/syscalls.master
--- a/sys/compat/aout/syscalls.master Wed Dec 06 18:57:37 2000 +0000
+++ b/sys/compat/aout/syscalls.master Wed Dec 06 21:02:00 2000 +0000
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.10 2000/08/07 17:59:35 bjh21 Exp $
+ $NetBSD: syscalls.master,v 1.11 2000/12/06 21:02:00 jdolecek Exp $
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@@ -34,6 +34,7 @@
; #ifdef's, etc. may be included, and are copied to the output files.
; #include's are copied to the syscall names and switch definition files only.
+if defined(_KERNEL) && !defined(_LKM)
#include "opt_ktrace.h"
#include "opt_nfsserver.h"
#include "opt_ntp.h"
@@ -43,6 +44,7 @@
#include "fs_lfs.h"
#include "fs_nfs.h"
+endif
#include <sys/param.h>
#include <sys/systm.h>
Home |
Main Index |
Thread Index |
Old Index