Commit f7f21647 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

cpu.c: Fix LLVM compile

Switch from `asm` to `__asm__` which is better supported.

Patch-from: Olivier Tristan <>
parent 61e7dfa8
......@@ -81,7 +81,7 @@ cpu_xgetbv_x86(void)
return (uint32_t)_xgetbv(0);
#elif defined __GNUC__
uint32_t lo, hi;
asm volatile (".byte 0x0f, 0x01, 0xd0" : "=a"(lo), "=d"(hi) : "c" (0));
__asm__ volatile (".byte 0x0f, 0x01, 0xd0" : "=a"(lo), "=d"(hi) : "c" (0));
return lo;
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment