Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm Make VERBOSE_ARM32 compile again and reduce...



details:   https://anonhg.NetBSD.org/src/rev/cb3c231644b8
branches:  trunk
changeset: 359510:cb3c231644b8
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Jan 08 09:00:23 2022 +0000

description:
Make VERBOSE_ARM32 compile again and reduce #ifdefs while I'm here

diffstat:

 sys/arch/arm/arm/undefined.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r d1dc71e261e1 -r cb3c231644b8 sys/arch/arm/arm/undefined.c
--- a/sys/arch/arm/arm/undefined.c      Sat Jan 08 08:40:19 2022 +0000
+++ b/sys/arch/arm/arm/undefined.c      Sat Jan 08 09:00:23 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: undefined.c,v 1.72 2021/10/31 16:23:47 skrll Exp $     */
+/*     $NetBSD: undefined.c,v 1.73 2022/01/08 09:00:23 skrll Exp $     */
 
 /*
  * Copyright (c) 2001 Ben Harris.
@@ -50,7 +50,7 @@
 #include "opt_kgdb.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: undefined.c,v 1.72 2021/10/31 16:23:47 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: undefined.c,v 1.73 2022/01/08 09:00:23 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -71,7 +71,9 @@
 #include <machine/pcb.h>
 #include <machine/trap.h>
 
+#ifdef VERBOSE_ARM32
 #include <arch/arm/arm/disassem.h>
+#endif
 
 #ifdef DDB
 #include <ddb/db_output.h>
@@ -307,9 +309,6 @@
        int coprocessor;
        int user;
        struct undefined_handler *uh;
-#ifdef VERBOSE_ARM32
-       int s;
-#endif
 
        curcpu()->ci_und_ev.ev_count++;
 
@@ -441,7 +440,7 @@
                ksiginfo_t ksi;
 
 #ifdef VERBOSE_ARM32
-               s = spltty();
+               int s = spltty();
 
                if ((fault_instruction & 0x0f000010) == 0x0e000000) {
                        printf("CDP\n");



Home | Main Index | Thread Index | Old Index