Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/luna68k/include Put the contents inside #ifdef _KER...



details:   https://anonhg.NetBSD.org/src/rev/69e8e9c35edf
branches:  trunk
changeset: 526551:69e8e9c35edf
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun May 05 22:07:59 2002 +0000

description:
Put the contents inside #ifdef _KERNEL, similarily to mac68k one,
so that the innards are not exposed to userland.

diffstat:

 sys/arch/luna68k/include/intr.h |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r c55198f959ea -r 69e8e9c35edf sys/arch/luna68k/include/intr.h
--- a/sys/arch/luna68k/include/intr.h   Sun May 05 21:24:51 2002 +0000
+++ b/sys/arch/luna68k/include/intr.h   Sun May 05 22:07:59 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.h,v 1.3 2001/04/13 23:30:00 thorpej Exp $ */
+/* $NetBSD: intr.h,v 1.4 2002/05/05 22:07:59 jdolecek Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -39,6 +39,8 @@
 #ifndef _MACHINE_INTR_H
 #define _MACHINE_INTR_H
 
+#ifdef _KERNEL
+
 /*
  * spl functions; all but spl0 are done in-line
  */
@@ -61,8 +63,8 @@
 /* watch out for side effects */
 #define splx(s)         ((s) & PSL_IPL ? _spl(s) : spl0())
 
-#ifdef _KERNEL
 int spl0 __P((void));
+
 #endif /* _KERNEL */
 
 #endif /* _MACHINE_INTR_H */



Home | Main Index | Thread Index | Old Index