Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips fix octeon !DDB builds.



details:   https://anonhg.NetBSD.org/src/rev/3ad71d5f1a7c
branches:  trunk
changeset: 939045:3ad71d5f1a7c
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Sep 24 02:12:01 2020 +0000

description:
fix octeon !DDB builds.

diffstat:

 sys/arch/mips/mips/mipsX_subr.S |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (47 lines):

diff -r 49a9e29ea267 -r 3ad71d5f1a7c sys/arch/mips/mips/mipsX_subr.S
--- a/sys/arch/mips/mips/mipsX_subr.S   Wed Sep 23 23:39:18 2020 +0000
+++ b/sys/arch/mips/mips/mipsX_subr.S   Thu Sep 24 02:12:01 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mipsX_subr.S,v 1.109 2020/08/23 10:23:38 simonb Exp $  */
+/*     $NetBSD: mipsX_subr.S,v 1.110 2020/09/24 02:12:01 mrg Exp $     */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -115,6 +115,11 @@
  *
  *     @(#)locore.s    8.5 (Berkeley) 1/4/94
  */
+
+#include <mips/asm.h>
+RCSID("$NetBSD: mipsX_subr.S,v 1.110 2020/09/24 02:12:01 mrg Exp $")
+
+#include "cpunode.h"                   /* for NWDOG */
 #include "opt_cputype.h"
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -125,7 +130,6 @@
 #include <sys/cdefs.h>
 #include <sys/endian.h>
 
-#include <mips/asm.h>
 #include <mips/cpuregs.h>
 #if defined(MIPS3)
 #include <mips/cache_r4k.h>
@@ -906,7 +910,7 @@
        .set    at
 END(MIPSX(kern_gen_exception))
 
-#ifdef DDB
+#if NWDOG > 0 || defined(DDB)
 /*
  * mipsN_kern_nonmaskable_intr
  *
@@ -1044,7 +1048,7 @@
         nop
        .set    at
 END(MIPSX(kern_nonmaskable_intr))
-#endif /* DDB */
+#endif /* NWDOG > 0 || DDB */
 
 /*
  * mipsN_kern_intr



Home | Main Index | Thread Index | Old Index