summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2016-04-19 10:24:43 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2016-04-19 10:24:43 +0000
commit14cac726a35484354099739306f8a7442ea7d34d (patch)
tree2d405222668b3aae4a4cbcf5cb3784dc2a8c3b88 /sys
parent9753f8926234c5209a981963d9da79915d452dad (diff)
Start reducing the dependence on <uvm/uvm_param.h> by using int-1-0
instead of boolean_t-TRUE-FALSE.
Diffstat (limited to 'sys')
-rw-r--r--sys/ddb/db_access.c4
-rw-r--r--sys/ddb/db_access.h4
-rw-r--r--sys/ddb/db_break.c12
-rw-r--r--sys/ddb/db_watch.c10
4 files changed, 15 insertions, 15 deletions
diff --git a/sys/ddb/db_access.c b/sys/ddb/db_access.c
index ad0134d1a5b..225aece430c 100644
--- a/sys/ddb/db_access.c
+++ b/sys/ddb/db_access.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_access.c,v 1.14 2016/01/25 14:30:30 mpi Exp $ */
+/* $OpenBSD: db_access.c,v 1.15 2016/04/19 10:24:42 mpi Exp $ */
/* $NetBSD: db_access.c,v 1.8 1994/10/09 08:37:35 mycroft Exp $ */
/*
@@ -42,7 +42,7 @@
* boundaries.
*/
db_expr_t
-db_get_value(db_addr_t addr, size_t size, boolean_t is_signed)
+db_get_value(db_addr_t addr, size_t size, int is_signed)
{
char data[sizeof(db_expr_t)];
db_expr_t value, extend;
diff --git a/sys/ddb/db_access.h b/sys/ddb/db_access.h
index 1f779903c7d..b214af7c63b 100644
--- a/sys/ddb/db_access.h
+++ b/sys/ddb/db_access.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_access.h,v 1.6 2016/01/25 14:30:30 mpi Exp $ */
+/* $OpenBSD: db_access.h,v 1.7 2016/04/19 10:24:42 mpi Exp $ */
/* $NetBSD: db_access.h,v 1.6 1994/10/09 08:29:57 mycroft Exp $ */
/*
@@ -33,7 +33,7 @@
/*
* Data access functions for debugger.
*/
-db_expr_t db_get_value(db_addr_t, size_t, boolean_t);
+db_expr_t db_get_value(db_addr_t, size_t, int);
void db_put_value(db_addr_t, size_t, db_expr_t);
void db_read_bytes(db_addr_t, size_t, char *);
diff --git a/sys/ddb/db_break.c b/sys/ddb/db_break.c
index 554ec27c138..976384c673e 100644
--- a/sys/ddb/db_break.c
+++ b/sys/ddb/db_break.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_break.c,v 1.18 2016/01/25 14:30:30 mpi Exp $ */
+/* $OpenBSD: db_break.c,v 1.19 2016/04/19 10:24:42 mpi Exp $ */
/* $NetBSD: db_break.c,v 1.7 1996/03/30 22:30:03 christos Exp $ */
/*
@@ -140,7 +140,7 @@ db_find_breakpoint(db_addr_t addr)
return (0);
}
-boolean_t db_breakpoints_inserted = TRUE;
+int db_breakpoints_inserted = 1;
void
db_set_breakpoints(void)
@@ -150,11 +150,11 @@ db_set_breakpoints(void)
if (!db_breakpoints_inserted) {
for (bkpt = db_breakpoint_list; bkpt != 0; bkpt = bkpt->link) {
bkpt->bkpt_inst =
- db_get_value(bkpt->address, BKPT_SIZE, FALSE);
+ db_get_value(bkpt->address, BKPT_SIZE, 0);
db_put_value(bkpt->address, BKPT_SIZE,
BKPT_SET(bkpt->bkpt_inst));
}
- db_breakpoints_inserted = TRUE;
+ db_breakpoints_inserted = 1;
}
}
@@ -166,7 +166,7 @@ db_clear_breakpoints(void)
if (db_breakpoints_inserted) {
for (bkpt = db_breakpoint_list; bkpt != 0; bkpt = bkpt->link)
db_put_value(bkpt->address, BKPT_SIZE, bkpt->bkpt_inst);
- db_breakpoints_inserted = FALSE;
+ db_breakpoints_inserted = 0;
}
}
@@ -198,7 +198,7 @@ db_set_temp_breakpoint(db_addr_t addr)
bkpt->init_count = 1;
bkpt->count = 1;
- bkpt->bkpt_inst = db_get_value(bkpt->address, BKPT_SIZE, FALSE);
+ bkpt->bkpt_inst = db_get_value(bkpt->address, BKPT_SIZE, 0);
db_put_value(bkpt->address, BKPT_SIZE, BKPT_SET(bkpt->bkpt_inst));
return bkpt;
}
diff --git a/sys/ddb/db_watch.c b/sys/ddb/db_watch.c
index adec2582db9..84c6d9dccab 100644
--- a/sys/ddb/db_watch.c
+++ b/sys/ddb/db_watch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_watch.c,v 1.15 2016/01/25 14:30:30 mpi Exp $ */
+/* $OpenBSD: db_watch.c,v 1.16 2016/04/19 10:24:42 mpi Exp $ */
/* $NetBSD: db_watch.c,v 1.9 1996/03/30 22:30:12 christos Exp $ */
/*
@@ -48,7 +48,7 @@
* Watchpoints.
*/
-boolean_t db_watchpoints_inserted = TRUE;
+int db_watchpoints_inserted = 1;
#define NWATCHPOINTS 100
struct db_watchpoint db_watch_table[NWATCHPOINTS];
@@ -109,7 +109,7 @@ db_set_watchpoint(db_addr_t addr, vsize_t size)
watch->link = db_watchpoint_list;
db_watchpoint_list = watch;
- db_watchpoints_inserted = FALSE;
+ db_watchpoints_inserted = 0;
}
void
@@ -189,12 +189,12 @@ db_set_watchpoints(void)
pmap_protect(pmap_kernel(), trunc_page(watch->loaddr),
round_page(watch->hiaddr), PROT_READ);
pmap_update(pmap_kernel());
- db_watchpoints_inserted = TRUE;
+ db_watchpoints_inserted = 1;
}
}
void
db_clear_watchpoints(void)
{
- db_watchpoints_inserted = FALSE;
+ db_watchpoints_inserted = 0;
}