Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Oct 2016 23:53:30 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Michael Butler <imb@protected-networks.net>
Cc:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: SVN r307866 compilation problem
Message-ID:  <20161024205330.GD54029@kib.kiev.ua>
In-Reply-To: <f9d8f518-6563-99f8-e427-11830ffb3f84@protected-networks.net>
References:  <f9d8f518-6563-99f8-e427-11830ffb3f84@protected-networks.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Oct 24, 2016 at 02:58:43PM -0400, Michael Butler wrote:
> 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@vm01:/usr/src/sys/x86/x86> svn diff
> Index: cpu_machdep.c
> ===================================================================
> --- cpu_machdep.c       (revision 307875)
> +++ cpu_machdep.c       (working copy)
> @@ -540,9 +540,9 @@
>   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.
>                   */
Um, no.  isa_nmi() should be checked and panic avoided regardless
of the panic_on_nmi setting, if no hw error was reported.  It is
#endif that was misplaced.

This and another change, are committed as r307880.

Thank you for the report.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161024205330.GD54029>