From e0b5a5d99cecbdb73b0016d8cf7bdba39c8cc1a7 Mon Sep 17 00:00:00 2001 From: Dimitri John Ledkov Date: Fri, 4 Sep 2015 16:06:53 +0100 Subject: [PATCH] Fix compilation with old kernel headers. Signed-off-by: Dimitri John Ledkov --- x86/include/asm/processor-flags.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/x86/include/asm/processor-flags.h b/x86/include/asm/processor-flags.h index 1f026dd..37ebe6e 100644 --- a/x86/include/asm/processor-flags.h +++ b/x86/include/asm/processor-flags.h @@ -2,6 +2,22 @@ #define _ASM_X86_PROCESSOR_FLAGS_H /* Various flags defined: can be included from assembler. */ +#ifndef _BITUL + +#ifdef __ASSEMBLY__ +#define _AC(X,Y) X +#define _AT(T,X) X +#else +#define __AC(X,Y) (X##Y) +#define _AC(X,Y) __AC(X,Y) +#define _AT(T,X) ((T)(X)) +#endif + +#define _BITUL(x) (_AC(1,UL) << (x)) +#define _BITULL(x) (_AC(1,ULL) << (x)) + +#endif + /* * EFLAGS bits */