Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/m68k/m68k Minimal (but hackish) change to make a DE...



details:   https://anonhg.NetBSD.org/src/rev/b89f11057621
branches:  trunk
changeset: 1019297:b89f11057621
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Mar 06 13:32:56 2021 +0000

description:
Minimal (but hackish) change to make a DEBUG kernel compilable.

diffstat:

 sys/arch/m68k/m68k/m68k_trap.c |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 226ab557cdcd -r b89f11057621 sys/arch/m68k/m68k/m68k_trap.c
--- a/sys/arch/m68k/m68k/m68k_trap.c    Sat Mar 06 13:21:26 2021 +0000
+++ b/sys/arch/m68k/m68k/m68k_trap.c    Sat Mar 06 13:32:56 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: m68k_trap.c,v 1.2 2019/04/06 03:06:26 thorpej Exp $    */
+/*     $NetBSD: m68k_trap.c,v 1.3 2021/03/06 13:32:56 martin Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: m68k_trap.c,v 1.2 2019/04/06 03:06:26 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: m68k_trap.c,v 1.3 2021/03/06 13:32:56 martin Exp $");
 
 #include "opt_m68k_arch.h"
 
@@ -91,6 +91,15 @@
 #define        KDFAULT(c)      (KDFAULT_060(c) || KDFAULT_040(c) || KDFAULT_OTH(c))
 #define        WRFAULT(c)      (WRFAULT_060(c) || WRFAULT_040(c) || WRFAULT_OTH(c))
 
+
+#ifdef DEBUG
+extern int mmudebug, mmupid;
+#define MDB_FOLLOW     1
+#define MDB_WBFOLLOW   2
+#define MDB_WBFAILED   4
+#define MDB_ISPID(pid) ((pid) == mmupid)
+#endif
+
 #ifdef M68040
 #ifdef DEBUG
 struct writebackstats {



Home | Main Index | Thread Index | Old Index