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 IPL_ values different.



details:   https://anonhg.NetBSD.org/src/rev/aead29003d61
branches:  trunk
changeset: 326118:aead29003d61
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Jan 19 07:01:55 2014 +0000

description:
Make IPL_ values different.
This makes ni real difference for rump, but avoods
KASSERTs in common code when we try to assert
"ipl not higher as...".
Suggested by riastradh, OK: pooka.

diffstat:

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

diffs (34 lines):

diff -r ec6482ec874c -r aead29003d61 sys/rump/include/machine/intr.h
--- a/sys/rump/include/machine/intr.h   Sun Jan 19 03:44:13 2014 +0000
+++ b/sys/rump/include/machine/intr.h   Sun Jan 19 07:01:55 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.h,v 1.19 2013/01/08 08:55:28 skrll Exp $  */
+/*     $NetBSD: intr.h,v 1.20 2014/01/19 07:01:55 martin Exp $ */
 
 /*
  * Copyright (c) 2009, 2010 Antti Kantee.  All Rights Reserved.
@@ -56,13 +56,18 @@
 #define splx(x) ((void)x)
 #define spl0() ((void)0)
 
+/*
+ * IPL_* does not mean anything to a run-to-completition rump kernel,
+ * but we sometimes assert a "not higher than" condition, so we assign
+ * different values (following spl(9)).
+ */
 #define IPL_NONE 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
+#define        IPL_SOFTBIO 2
+#define        IPL_SOFTNET 3
+#define IPL_SOFTSERIAL 4
+#define IPL_VM 5
+#define IPL_SCHED 6
+#define IPL_HIGH 7
 
 #endif /* _SYS_RUMP_INTR_H_ */



Home | Main Index | Thread Index | Old Index