[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150724123102.376c0a99@gandalf.local.home>
Date: Fri, 24 Jul 2015 12:31:02 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Willy Tarreau <w@....eu>
Cc: Andy Lutomirski <luto@...capital.net>,
Peter Zijlstra <peterz@...radead.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
X86 ML <x86@...nel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Borislav Petkov <bp@...en8.de>,
Thomas Gleixner <tglx@...utronix.de>,
Brian Gerst <brgerst@...il.com>
Subject: Re: Dealing with the NMI mess
On Fri, 24 Jul 2015 18:08:06 +0200
Willy Tarreau <w@....eu> wrote:
> > Um, isn't 0xf * DR_TRAP0 same as a constant "true"?
>
> For me it's a typo, it should have been :
>
> if ((dr6 & (0xf * DR_TRAP0) && (regs->flags & (X86_EFLAGS_RF |
>
> (the purpose was to read all 4 lower bits at once).
I figured that after I sent it, but the 0xf * DR_TRAP0 is also
confusing to me. Actually, why not use proper naming:
dr6 & DR_TRAP_BITS
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists