summaryrefslogtreecommitdiff
path: root/sys/arch/arm64
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2019-11-07 11:04:22 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2019-11-07 11:04:22 +0000
commit1e55c705e5a9ee91cbb478c344debccc6716e00f (patch)
tree60b3e3832af786503b4b94265699efb0f0203516 /sys/arch/arm64
parent6b44825d6047b5f78b55121dcd6414b55ff71166 (diff)
Substitute boolean_t/TRUE/FALSE by int/1/0.
ok dlg@, jasper@
Diffstat (limited to 'sys/arch/arm64')
-rw-r--r--sys/arch/arm64/arm64/db_disasm.c4
-rw-r--r--sys/arch/arm64/arm64/db_interface.c8
-rw-r--r--sys/arch/arm64/arm64/db_trace.c10
3 files changed, 11 insertions, 11 deletions
diff --git a/sys/arch/arm64/arm64/db_disasm.c b/sys/arch/arm64/arm64/db_disasm.c
index a27762d3098..920d6f427a5 100644
--- a/sys/arch/arm64/arm64/db_disasm.c
+++ b/sys/arch/arm64/arm64/db_disasm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_disasm.c,v 1.1 2016/12/17 23:38:33 patrick Exp $ */
+/* $OpenBSD: db_disasm.c,v 1.2 2019/11/07 11:04:21 mpi Exp $ */
/*
* Copyright (c) 2016 Dale Rahn <drahn@dalerahn.com>
*
@@ -23,7 +23,7 @@
#include <ddb/db_access.h>
vaddr_t
-db_disasm(vaddr_t loc, boolean_t altfmt)
+db_disasm(vaddr_t loc, int altfmt)
{
return loc + 4;
}
diff --git a/sys/arch/arm64/arm64/db_interface.c b/sys/arch/arm64/arm64/db_interface.c
index 4aae8aa585a..e4068fec93e 100644
--- a/sys/arch/arm64/arm64/db_interface.c
+++ b/sys/arch/arm64/arm64/db_interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_interface.c,v 1.6 2019/03/23 05:47:22 visa Exp $ */
+/* $OpenBSD: db_interface.c,v 1.7 2019/11/07 11:04:21 mpi Exp $ */
/* $NetBSD: db_interface.c,v 1.34 2003/10/26 23:11:15 chris Exp $ */
/*
@@ -105,7 +105,7 @@ struct db_variable db_regs[] = {
struct db_mutex ddb_mp_mutex = DB_MUTEX_INITIALIZER;
volatile int ddb_state = DDB_STATE_NOT_RUNNING;
volatile cpuid_t ddb_active_cpu;
-boolean_t db_switch_cpu;
+int db_switch_cpu;
long db_switch_to_cpu;
void db_cpuinfo_cmd(db_expr_t, int, db_expr_t, char *);
@@ -156,9 +156,9 @@ kdb_trap(int type, db_regs_t *regs)
s = splhigh();
db_active++;
- cnpollc(TRUE);
+ cnpollc(1);
db_trap(type, 0/*code*/);
- cnpollc(FALSE);
+ cnpollc(0);
db_active--;
splx(s);
diff --git a/sys/arch/arm64/arm64/db_trace.c b/sys/arch/arm64/arm64/db_trace.c
index f9af3f981de..2b94a443e8d 100644
--- a/sys/arch/arm64/arm64/db_trace.c
+++ b/sys/arch/arm64/arm64/db_trace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_trace.c,v 1.6 2018/05/04 15:43:34 visa Exp $ */
+/* $OpenBSD: db_trace.c,v 1.7 2019/11/07 11:04:21 mpi Exp $ */
/* $NetBSD: db_trace.c,v 1.8 2003/01/17 22:28:48 thorpej Exp $ */
/*
@@ -68,15 +68,15 @@ db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count,
db_expr_t offset;
Elf_Sym * sym;
char *name;
- boolean_t kernel_only = TRUE;
- boolean_t trace_thread = FALSE;
+ int kernel_only = 1;
+ int trace_thread = 0;
//db_addr_t scp = 0;
while ((c = *cp++) != 0) {
if (c == 'u')
- kernel_only = FALSE;
+ kernel_only = 0;
if (c == 't')
- trace_thread = TRUE;
+ trace_thread = 1;
}
if (!have_addr) {