x86: explicit suffix in inline assembler (for clang).
authorTim Deegan <tim@xen.org>
Thu, 14 Feb 2013 13:20:06 +0000 (14:20 +0100)
committerTim Deegan <tim@xen.org>
Thu, 14 Feb 2013 13:20:06 +0000 (14:20 +0100)
This fixes the clang build, and has no effect on gcc's output.

Signed-off-by: Tim Deegan <tim@xen.org>
Committed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/time.c

index 4331386c69088c234c53ca1ed841ab6b77922602..84c67a721f792c0b9ddfed84bae85f60a8aaa19d 100644 (file)
@@ -127,7 +127,7 @@ static inline u64 scale_delta(u64 delta, struct time_scale *scale)
         delta <<= scale->shift;
 
     asm (
-        "mul %2 ; shrd $32,%1,%0"
+        "mulq %2 ; shrd $32,%1,%0"
         : "=a" (product), "=d" (delta)
         : "rm" (delta), "0" ((u64)scale->mul_frac) );