Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 cpu_trace is no more, remove vestige of it ...



details:   https://anonhg.NetBSD.org/src/rev/86da521abee6
branches:  trunk
changeset: 355387:86da521abee6
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Jul 28 14:12:26 2017 +0000

description:
cpu_trace is no more, remove vestige of it that broke ALL kernel.

diffstat:

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

diffs (34 lines):

diff -r f7004a882e65 -r 86da521abee6 sys/arch/x86/x86/cpu.c
--- a/sys/arch/x86/x86/cpu.c    Fri Jul 28 13:59:07 2017 +0000
+++ b/sys/arch/x86/x86/cpu.c    Fri Jul 28 14:12:26 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.131 2017/06/10 05:31:34 pgoyette Exp $       */
+/*     $NetBSD: cpu.c,v 1.132 2017/07/28 14:12:26 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2000-2012 NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.131 2017/06/10 05:31:34 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.132 2017/07/28 14:12:26 riastradh Exp $");
 
 #include "opt_ddb.h"
 #include "opt_mpbios.h"                /* for MPDEBUG */
@@ -724,15 +724,6 @@
        KASSERT(cpu_starting == NULL);
        cpu_starting = ci;
        for (i = 100000; (!(ci->ci_flags & CPUF_PRESENT)) && i > 0; i--) {
-#ifdef MPDEBUG
-               extern int cpu_trace[3];
-               static int otrace[3];
-               if (memcmp(otrace, cpu_trace, sizeof(otrace)) != 0) {
-                       aprint_debug_dev(ci->ci_dev, "trace %02x %02x %02x\n",
-                           cpu_trace[0], cpu_trace[1], cpu_trace[2]);
-                       memcpy(otrace, cpu_trace, sizeof(otrace));
-               }
-#endif
                i8254_delay(10);
        }
 



Home | Main Index | Thread Index | Old Index