x86/msr: Fix XEN_MSR_PAT to build with older binutils
PATCH 1/1 x86/msr: Fix XEN_MSR_PAT to build with older binutils
Older binutils complains with:
trampoline.S:95: Error: junk `ul&0xffffffff' after expression
Use an assembly-safe constant.
Signed-off-by Andrew Cooper <[email protected]>
---
CC: Jan Beulich <[email protected]>
CC: Wei Liu <[email protected]>
CC: Roger Pau Monné <[email protected]>
--- xen/include/asm-x86/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/include/asm-x86/processor.h +1 -1
@@ -99,7 +99,7 @@* Host IA32_CR_PAT value to cover all memory types. This is not the default * MSR_PAT value, and is an ABI with PV guests. */ -#define XEN_MSR_PAT 0x050100070406ul +#define XEN_MSR_PAT _AC(0x050100070406, ULL)#ifndef __ASSEMBLY__
Signature · 1 line
2.11.0
Quoted 6 lines · Andrew Cooper
Older binutils complains with:
trampoline.S:95: Error: junk `ul&0xffffffff' after expressionUse an assembly-safe constant.
Signed-off-by Andrew Cooper <[email protected]>
Acked-by Jan Beulich <[email protected]>