SVN r307866 compilation problem

From: Michael Butler <imb_at_protected-networks.net>
Date: Mon, 24 Oct 2016 14:58:43 -0400
It seems that compilation of -current fails in the case that KDB is not 
defined.

I'm assuming that the following diff achieves what was intended:

imb_at_vm01:/usr/src/sys/x86/x86> svn diff
Index: cpu_machdep.c
===================================================================
--- cpu_machdep.c       (revision 307875)
+++ cpu_machdep.c       (working copy)
_at__at_ -540,9 +540,9 _at__at_
  nmi_call_kdb(u_int cpu, u_int type, struct trapframe *frame, bool 
do_panic)
  {

+#ifdef KDB
         /* machine/parity/power fail/"kitchen sink" faults */
         if (isa_nmi(frame->tf_err) == 0) {
-#ifdef KDB
                 /*
                  * NMI can be hooked up to a pushbutton for debugging.
                  */
Received on Mon Oct 24 2016 - 16:58:45 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:08 UTC