Re: [tip:x86/asm] x86, processor-flags: Fix the datatypes and addbit number defines

From: H. Peter Anvin
Date: Tue Jun 25 2013 - 19:13:52 EST


On 06/25/2013 04:07 PM, Borislav Petkov wrote:
>
> Btw, are you going to need those _BIT defines anywhere else?
>
> Because if no, you could simply do:
>
> #define X86_EFLAGS_CF _BITUL(0) /* Carry Flag */
>
> and so on, and drop the _BIT defines.
>

Yes. I didn't get around to doing this particular bit of the cleanup,
but we have several places where we currently index various bits by
open-coded numbers, especially in assembly code.

-hpa

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/