Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern If IPL_SAFEPRI is defined, use it to initialize saf...
details: https://anonhg.NetBSD.org/src/rev/390e4efcf87c
branches: trunk
changeset: 777752:390e4efcf87c
user: matt <matt%NetBSD.org@localhost>
date: Sat Mar 03 00:22:24 2012 +0000
description:
If IPL_SAFEPRI is defined, use it to initialize safepri.
diffstat:
sys/kern/kern_synch.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 426317e9bea7 -r 390e4efcf87c sys/kern/kern_synch.c
--- a/sys/kern/kern_synch.c Sat Mar 03 00:21:50 2012 +0000
+++ b/sys/kern/kern_synch.c Sat Mar 03 00:22:24 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_synch.c,v 1.298 2012/02/19 21:06:54 rmind Exp $ */
+/* $NetBSD: kern_synch.c,v 1.299 2012/03/03 00:22:24 matt Exp $ */
/*-
* Copyright (c) 1999, 2000, 2004, 2006, 2007, 2008, 2009
@@ -69,7 +69,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.298 2012/02/19 21:06:54 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.299 2012/03/03 00:22:24 matt Exp $");
#include "opt_kstack.h"
#include "opt_perfctrs.h"
@@ -145,7 +145,11 @@
* be 0, or the lowest priority that is safe for use on the interrupt stack;
* it can be made higher to block network software interrupts after panics.
*/
+#ifdef IPL_SAFEPRI
+int safepri = IPL_SAFEPRI;
+#else
int safepri;
+#endif
void
synch_init(void)
Home |
Main Index |
Thread Index |
Old Index