Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/include/machine Make IPLs not equal IPL_NONE to avo...



details:   https://anonhg.NetBSD.org/src/rev/a508809563eb
branches:  trunk
changeset: 757459:a508809563eb
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Aug 30 18:29:52 2010 +0000

description:
Make IPLs not equal IPL_NONE to avoid some KASSERTs.

diffstat:

 sys/rump/include/machine/intr.h |  22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)

diffs (42 lines):

diff -r f88f9aaa0eed -r a508809563eb sys/rump/include/machine/intr.h
--- a/sys/rump/include/machine/intr.h   Mon Aug 30 11:51:29 2010 +0000
+++ b/sys/rump/include/machine/intr.h   Mon Aug 30 18:29:52 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.h,v 1.16 2009/02/06 20:01:41 pooka Exp $  */
+/*     $NetBSD: intr.h,v 1.17 2010/08/30 18:29:52 pooka Exp $  */
 
 /*
  * Copyright (c) 2007 Antti Kantee.  All Rights Reserved.
@@ -37,10 +37,8 @@
         ipl_t _ipl;
 } ipl_cookie_t;
 
-static inline ipl_cookie_t makeiplcookie(ipl_t);
-
-static inline
-ipl_cookie_t makeiplcookie(ipl_t ipl)
+static inline ipl_cookie_t
+makeiplcookie(ipl_t ipl)
 {
        ipl_cookie_t c;
        c._ipl = ipl;
@@ -60,12 +58,12 @@
 #define spl0() ((void)0)
 
 #define IPL_NONE 0
-#define        IPL_SOFTBIO 0
-#define        IPL_SOFTCLOCK 0
-#define IPL_SOFTSERIAL 0
-#define        IPL_SOFTNET 0
-#define IPL_SCHED 0
-#define IPL_VM 0
-#define IPL_HIGH 0
+#define        IPL_SOFTBIO 1
+#define        IPL_SOFTCLOCK 1
+#define IPL_SOFTSERIAL 1
+#define        IPL_SOFTNET 1
+#define IPL_SCHED 2
+#define IPL_VM 2
+#define IPL_HIGH 2
 
 #endif /* _SYS_RUMP_INTR_H_ */



Home | Main Index | Thread Index | Old Index