aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xen/include/asm-x86/random.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/asm-x86/random.h b/xen/include/asm-x86/random.h
index 6198e72a7b..9e1fe0bc1d 100644
--- a/xen/include/asm-x86/random.h
+++ b/xen/include/asm-x86/random.h
@@ -8,7 +8,7 @@ static inline unsigned int arch_get_random(void)
unsigned int val = 0;
if ( cpu_has(&current_cpu_data, X86_FEATURE_RDRAND) )
- asm ( ".byte 0x0f,0xc7,0xf0" : "+a" (val) );
+ asm volatile ( ".byte 0x0f,0xc7,0xf0" : "+a" (val) );
return val;
}