X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=arch%2Fx86%2Finclude%2Fasm%2Fvsyscall.h;h=2874be9aef0ae7f19efec928c66a4bb0394e0311;hb=231897adf5ecd659b5e8eea5ff22da28ba539c15;hp=2a46ca720afca5fd6f5e5010698e8eea56748837;hpb=0f177f873975fe7ece64d334887e83e081d88dec;p=firefly-linux-kernel-4.4.55.git diff --git a/arch/x86/include/asm/vsyscall.h b/arch/x86/include/asm/vsyscall.h index 2a46ca720afc..2874be9aef0a 100644 --- a/arch/x86/include/asm/vsyscall.h +++ b/arch/x86/include/asm/vsyscall.h @@ -34,7 +34,7 @@ static inline unsigned int __getcpu(void) native_read_tscp(&p); } else { /* Load per CPU data from GDT */ - asm("lsl %1,%0" : "=r" (p) : "r" (__PER_CPU_SEG)); + asm volatile ("lsl %1,%0" : "=r" (p) : "r" (__PER_CPU_SEG)); } return p;