[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 19/66] i386/i386/db_interface.c: use boolean instead of an int
From: |
Marin Ramesa |
Subject: |
[PATCH 19/66] i386/i386/db_interface.c: use boolean instead of an int |
Date: |
Thu, 5 Dec 2013 22:03:13 +0100 |
* i386/i386/db_interface.c (kernel_dr): Use boolean instead of an int.
---
i386/i386/db_interface.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/i386/i386/db_interface.c b/i386/i386/db_interface.c
index a8ac52a..a59ed37 100644
--- a/i386/i386/db_interface.c
+++ b/i386/i386/db_interface.c
@@ -61,7 +61,7 @@
#if MACH_KDB
/* Whether the kernel uses any debugging register. */
-static int kernel_dr;
+static boolean_t kernel_dr;
#endif
void db_load_context(pcb_t pcb)
@@ -137,7 +137,7 @@ void db_dr (
splx(s);
return;
}
- kernel_dr = 1;
+ kernel_dr = TRUE;
/* Clear user debugging registers */
set_dr7(0);
set_dr0(0);
@@ -163,7 +163,7 @@ void db_dr (
if (kernel_dr) {
if (!ids.dr[0] && !ids.dr[1] && !ids.dr[2] && !ids.dr[3]) {
/* Not used any more, switch back to user debugging registers */
- kernel_dr = 0;
+ kernel_dr = FALSE;
db_load_context(current_thread()->pcb);
}
}
--
1.8.1.4
- [PATCH 11/66] device/cirbuf.c: use boolean instead of an int, (continued)
- [PATCH 11/66] device/cirbuf.c: use boolean instead of an int, Marin Ramesa, 2013/12/05
- [PATCH 12/66] device/cons.h: remove ifdef, Marin Ramesa, 2013/12/05
- [PATCH 14/66] device/if_ether.h: remove unused variable, Marin Ramesa, 2013/12/05
- [PATCH 13/66] device/dev_lookup.c: remove unused lock, Marin Ramesa, 2013/12/05
- [PATCH 15/66] device/if_ether.h: remove ifdef, Marin Ramesa, 2013/12/05
- [PATCH 16/66] device/kmsg.c: use boolean instead of an int, Marin Ramesa, 2013/12/05
- [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 <=
- [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, 2013/12/05
- [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