Ok?

Index: arch/arm64/arm64/db_disasm.c
===================================================================
RCS file: /cvs/src/sys/arch/arm64/arm64/db_disasm.c,v
retrieving revision 1.1
diff -u -p -r1.1 db_disasm.c
--- arch/arm64/arm64/db_disasm.c        17 Dec 2016 23:38:33 -0000      1.1
+++ arch/arm64/arm64/db_disasm.c        5 Nov 2019 16:09:20 -0000
@@ -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;
 }
Index: arch/arm64/arm64/db_interface.c
===================================================================
RCS file: /cvs/src/sys/arch/arm64/arm64/db_interface.c,v
retrieving revision 1.6
diff -u -p -r1.6 db_interface.c
--- arch/arm64/arm64/db_interface.c     23 Mar 2019 05:47:22 -0000      1.6
+++ arch/arm64/arm64/db_interface.c     5 Nov 2019 16:10:14 -0000
@@ -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);
 
@@ -189,7 +189,7 @@ db_validate_address(vaddr_t addr)
        else
                pmap = p->p_vmspace->vm_map.pmap;
 
-       return (pmap_extract(pmap, addr, NULL) == FALSE);
+       return (pmap_extract(pmap, addr, NULL) == 0);
 }
 
 /*
Index: arch/arm64/arm64/db_trace.c
===================================================================
RCS file: /cvs/src/sys/arch/arm64/arm64/db_trace.c,v
retrieving revision 1.6
diff -u -p -r1.6 db_trace.c
--- arch/arm64/arm64/db_trace.c 4 May 2018 15:43:34 -0000       1.6
+++ arch/arm64/arm64/db_trace.c 5 Nov 2019 16:09:47 -0000
@@ -68,15 +68,15 @@ db_stack_trace_print(db_expr_t addr, int
        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) {
Index: arch/mips64/include/db_machdep.h
===================================================================
RCS file: /cvs/src/sys/arch/mips64/include/db_machdep.h,v
retrieving revision 1.18
diff -u -p -r1.18 db_machdep.h
--- arch/mips64/include/db_machdep.h    23 Mar 2019 05:47:23 -0000      1.18
+++ arch/mips64/include/db_machdep.h    6 Nov 2019 07:38:29 -0000
@@ -43,7 +43,7 @@ typedef vaddr_t               db_addr_t;
 
 #define        SOFTWARE_SSTEP          /* Need software single step */
 #define        SOFTWARE_SSTEP_EMUL     /* next_instr_address() emulates 100% */
-db_addr_t      next_instr_address(db_addr_t, boolean_t);
+db_addr_t      next_instr_address(db_addr_t, int);
 #define        BKPT_SIZE   (4)
 #define        BKPT_SET(ins)   (BREAK_DDB)
 #define        DB_VALID_BREAKPOINT(addr)       (((addr) & 3) == 0)
Index: arch/mips64/mips64/db_disasm.c
===================================================================
RCS file: /cvs/src/sys/arch/mips64/mips64/db_disasm.c,v
retrieving revision 1.17
diff -u -p -r1.17 db_disasm.c
--- arch/mips64/mips64/db_disasm.c      23 Sep 2015 17:03:27 -0000      1.17
+++ arch/mips64/mips64/db_disasm.c      6 Nov 2019 07:39:47 -0000
@@ -1016,7 +1016,7 @@ loadstore:
 
 #ifdef _KERNEL
 db_addr_t
-db_disasm(db_addr_t loc, boolean_t altfmt)
+db_disasm(db_addr_t loc, int altfmt)
 {
        extern uint32_t kdbpeek(vaddr_t);
 
Index: arch/mips64/mips64/db_machdep.c
===================================================================
RCS file: /cvs/src/sys/arch/mips64/mips64/db_machdep.c,v
retrieving revision 1.53
diff -u -p -r1.53 db_machdep.c
--- arch/mips64/mips64/db_machdep.c     2 Sep 2019 02:35:33 -0000       1.53
+++ arch/mips64/mips64/db_machdep.c     6 Nov 2019 07:39:48 -0000
@@ -72,7 +72,7 @@ void db_dump_tlb_cmd(db_expr_t, int, db_
 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;
 #endif
 
@@ -133,7 +133,7 @@ db_ktrap(int type, struct trapframe *fp)
 {
        switch(type) {
        case T_BREAK:           /* breakpoint */
-               if (db_get_value((fp)->pc, sizeof(int), FALSE) == BREAK_SOVER) {
+               if (db_get_value((fp)->pc, sizeof(int), 0) == BREAK_SOVER) {
                        (fp)->pc += BKPT_SIZE;
                }
                break;
@@ -162,9 +162,9 @@ db_ktrap(int type, struct trapframe *fp)
                bcopy((void *)fp, (void *)&ddb_regs, NUMSAVEREGS * 
sizeof(register_t));
 
                db_active++;
-               cnpollc(TRUE);
+               cnpollc(1);
                db_trap(type, 0);
-               cnpollc(FALSE);
+               cnpollc(0);
                db_active--;
 
                bcopy((void *)&ddb_regs, (void *)fp, NUMSAVEREGS * 
sizeof(register_t));
@@ -173,7 +173,7 @@ db_ktrap(int type, struct trapframe *fp)
                        ddb_state = DDB_STATE_EXITING;
        }
 #endif
-       return(TRUE);
+       return 1;
 }
 
 #ifdef MULTIPROCESSOR
@@ -332,7 +332,7 @@ db_write_bytes(vaddr_t addr, size_t size
 }
 
 void
-db_stack_trace_print(db_expr_t addr, boolean_t have_addr, db_expr_t count,
+db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count,
     char *modif, int (*pr)(const char *, ...))
 {
        struct trapframe *regs = &ddb_regs;
@@ -354,7 +354,7 @@ db_stack_trace_print(db_expr_t addr, boo
  *     required.
  */
 db_addr_t
-next_instr_address(db_addr_t pc, boolean_t bd)
+next_instr_address(db_addr_t pc, int bd)
 {
        db_addr_t next;
        uint32_t instr;

Reply via email to