Fri Jan 2 10:45:26 2009 UTC ()
printf needs IPL_HIGH


(pooka)
diff -r1.12 -r1.13 src/sys/rump/include/machine/intr.h

cvs diff -r1.12 -r1.13 src/sys/rump/include/machine/intr.h (switch to unified diff)

--- src/sys/rump/include/machine/intr.h 2008/11/26 15:04:02 1.12
+++ src/sys/rump/include/machine/intr.h 2009/01/02 10:45:26 1.13
@@ -1,58 +1,59 @@ @@ -1,58 +1,59 @@
1/* $NetBSD: intr.h,v 1.12 2008/11/26 15:04:02 pooka Exp $ */ 1/* $NetBSD: intr.h,v 1.13 2009/01/02 10:45:26 pooka Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2007 Antti Kantee. All Rights Reserved. 4 * Copyright (c) 2007 Antti Kantee. All Rights Reserved.
5 * 5 *
6 * Development of this software was supported by Google Summer of Code. 6 * Development of this software was supported by Google Summer of Code.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
11 * 1. Redistributions of source code must retain the above copyright 11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer. 12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright 13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the 14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution. 15 * documentation and/or other materials provided with the distribution.
16 * 16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
18 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 18 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 19 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE. 27 * SUCH DAMAGE.
28 */ 28 */
29 29
30#ifndef _SYS_RUMP_INTR_H_ 30#ifndef _SYS_RUMP_INTR_H_
31#define _SYS_RUMP_INTR_H_ 31#define _SYS_RUMP_INTR_H_
32 32
33typedef uint8_t ipl_t; 33typedef uint8_t ipl_t;
34typedef struct { 34typedef struct {
35 ipl_t _ipl; 35 ipl_t _ipl;
36} ipl_cookie_t; 36} ipl_cookie_t;
37 37
38int rump_splfoo(void); 38int rump_splfoo(void);
39void rump_splx(int); 39void rump_splx(int);
40 40
41#define spllower(x) ((void)0) 41#define spllower(x) ((void)0)
42#define splraise(x) 0 42#define splraise(x) 0
43#define splsoftnet() rump_splfoo() 43#define splsoftnet() rump_splfoo()
44#define splsoftclock() rump_splfoo() 44#define splsoftclock() rump_splfoo()
45#define splhigh() rump_splfoo() 45#define splhigh() rump_splfoo()
46#define splsched() rump_splfoo() 46#define splsched() rump_splfoo()
47#define splvm() rump_splfoo() 47#define splvm() rump_splfoo()
48#define splx(x) rump_splx(x) 48#define splx(x) rump_splx(x)
49#define spl0() ((void)0) 49#define spl0() ((void)0)
50 50
51#define IPL_NONE 0 51#define IPL_NONE 0
52#define IPL_SOFTBIO 0 52#define IPL_SOFTBIO 0
53#define IPL_SOFTCLOCK 0 53#define IPL_SOFTCLOCK 0
54#define IPL_SOFTNET 0 54#define IPL_SOFTNET 0
55#define IPL_SCHED 0 55#define IPL_SCHED 0
56#define IPL_VM 0 56#define IPL_VM 0
 57#define IPL_HIGH 0
57 58
58#endif /* _SYS_RUMP_INTR_H_ */ 59#endif /* _SYS_RUMP_INTR_H_ */