x86, processor-flags: Fix the datatypes and add bit number defines
authorH. Peter Anvin <hpa@linux.intel.com>
Sat, 27 Apr 2013 23:11:17 +0000 (16:11 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 25 Jun 2013 23:26:06 +0000 (16:26 -0700)
commitd1fbefcb3aa608599a3c9e4582cbeeb6ba6c8939
tree71036808a608a78bd17a3572c64f822d6e9470ed
parentafcbf13fa6d53d8a97eafaca1dcb344331d2ce0c
x86, processor-flags: Fix the datatypes and add bit number defines

The control registers are unsigned long (32 bits on i386, 64 bits on
x86-64), and so make that manifest in the data type for the various
constants.  Add defines with a _BIT suffix which defines the bit
number, as opposed to the bit mask.

This should resolve some issues with ~bitmask that Linus discovered.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Link: http://lkml.kernel.org/n/tip-cwckhbrib2aux1qbteaebij0@git.kernel.org
arch/x86/include/uapi/asm/processor-flags.h