Skip to contentSkip to conversation

x86/msr: Fix XEN_MSR_PAT to build with older binutils

PATCH In review Andrew Cooper 2 participants 2 messages Apr 29, 2020 – Apr 30, 2020

lore
Share & tools
lore
#0 lore raw

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.

---
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
index ea6e5497f4..8f6f5a97dd 100644
@@ -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