Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mvme68k/include Add #ifdef _KERNEL around the spln(...
details: https://anonhg.NetBSD.org/src/rev/c8e7c54044db
branches: trunk
changeset: 476611:c8e7c54044db
user: scw <scw%NetBSD.org@localhost>
date: Tue Sep 21 18:49:19 1999 +0000
description:
Add #ifdef _KERNEL around the spln() macros.
diffstat:
sys/arch/mvme68k/include/param.h | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r ba77053142d3 -r c8e7c54044db sys/arch/mvme68k/include/param.h
--- a/sys/arch/mvme68k/include/param.h Tue Sep 21 18:08:37 1999 +0000
+++ b/sys/arch/mvme68k/include/param.h Tue Sep 21 18:49:19 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.16 1999/08/05 18:08:11 thorpej Exp $ */
+/* $NetBSD: param.h,v 1.17 1999/09/21 18:49:19 scw Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -73,6 +73,7 @@
#include <machine/psl.h>
+#ifdef _KERNEL
/* spl0 requires checking for software interrupts */
#define spllowersoftclock() spl1()
@@ -92,10 +93,11 @@
/* watch out for side effects */
#define splx(s) (s & PSL_IPL ? _spl(s) : spl0())
-#if defined(_KERNEL) && !defined(_LOCORE)
+#ifndef _LOCORE
extern void _delay __P((unsigned));
#define delay(us) _delay((us)<<8)
#define DELAY(n) delay(n)
-#endif /* _KERNEL && !_LOCORE */
+#endif /* !_LOCORE */
+#endif /* _KERNEL */
#endif /* !_MACHINE_PARAM_H_ */
Home |
Main Index |
Thread Index |
Old Index