[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 23/66] i386/i386/ipl.h: remove ifdef and add ifndef
From: |
Marin Ramesa |
Subject: |
[PATCH 23/66] i386/i386/ipl.h: remove ifdef and add ifndef |
Date: |
Thu, 5 Dec 2013 22:03:17 +0100 |
This code is used even if KERNEL is not defined. Remove the ifdef.
* i386/i386/ipl.h [KERNEL]: Remove ifdef.
[_I386_IPL_H_]: Add ifndef.
---
i386/i386/ipl.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/i386/i386/ipl.h b/i386/i386/ipl.h
index 8f729e1..7503ac3 100644
--- a/i386/i386/ipl.h
+++ b/i386/i386/ipl.h
@@ -49,6 +49,8 @@ OTHER TORTIOUS ACTION, ARISING OUR OF OR IN CONNECTION
WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifndef _I386_IPL_H_
+#define _I386_IPL_H_
#define SPL0 0
#define SPL1 1
@@ -67,7 +69,6 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define NSPL (SPL7 + 1)
-#ifdef KERNEL
#ifndef __ASSEMBLER__
#include <machine/machspl.h>
extern void (*ivect[])();
@@ -75,4 +76,5 @@ extern int iunit[];
extern int intpri[];
extern spl_t curr_ipl;
#endif /* __ASSEMBLER__ */
-#endif /* KERNEL */
+
+#endif /* _I386_IPL_H_ */
--
1.8.1.4
- [PATCH 17/66] device/kmsg.c: use boolean instead of an int, (continued)
- [PATCH 17/66] device/kmsg.c: use boolean instead of an int, Marin Ramesa, 2013/12/05
- [PATCH 18/66] device/tty.h, chario.h: move prototype, Marin Ramesa, 2013/12/05
- [PATCH 19/66] i386/i386/db_interface.c: use boolean instead of an int, Marin Ramesa, 2013/12/05
- [PATCH 20/66] i386/i386/db_interface.c: remove dead assignment, Marin Ramesa, 2013/12/05
- [PATCH 22/66] i386/i386/db_interface.c: remove dead assignment, Marin Ramesa, 2013/12/05
- [PATCH 21/66] i386/i386/db_interface.c: remove dead assignment, Marin Ramesa, 2013/12/05
- [PATCH 24/66] i386/i386/mp_desc.c: remove unused variable, Marin Ramesa, 2013/12/05
- [PATCH 23/66] i386/i386/ipl.h: remove ifdef and add ifndef,
Marin Ramesa <=
- [PATCH 26/66] i386/i386/pic.c: remove unused variables, Marin Ramesa, 2013/12/05
- [PATCH 25/66] i386/i386/mp_desc.c: remove dead assignment, Marin Ramesa, 2013/12/05
- [PATCH 27/66] i386/i386/pit.c: remove unused variables, Marin Ramesa, 2013/12/05
- [PATCH 29/66] i386/i386/trap.c: remove unused variables, Marin Ramesa, 2013/12/05
- [PATCH 28/66] i386/i386/trap.c: remove unused variable, Marin Ramesa, 2013/12/05
- [PATCH 30/66] i386/i386/user_ldt.c: remove unused variable, Marin Ramesa, 2013/12/05
- [PATCH 31/66] i386/i386at/com.c: simplify code, Marin Ramesa, 2013/12/05
- [PATCH 32/66] i386/i386at/com.c: remove dead assignment, Marin Ramesa, 2013/12/05