about summary refs log tree commit diff
path: root/arch/x86_64
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64')
-rw-r--r--arch/x86_64/pthread_arch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/pthread_arch.h b/arch/x86_64/pthread_arch.h
index c424493a..836187f5 100644
--- a/arch/x86_64/pthread_arch.h
+++ b/arch/x86_64/pthread_arch.h
@@ -1,7 +1,7 @@
 static inline struct pthread *__pthread_self()
 {
 	struct pthread *self;
-	__asm__ ("movq %%fs:0,%0" : "=r" (self) );
+	__asm__ __volatile__ ("movq %%fs:0,%0" : "=r" (self) );
 	return self;
 }