diff options
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/pthread_arch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/pthread_arch.h b/arch/i386/pthread_arch.h index b17dc87a..0ea0aaca 100644 --- a/arch/i386/pthread_arch.h +++ b/arch/i386/pthread_arch.h @@ -1,7 +1,7 @@ static inline struct pthread *__pthread_self() { struct pthread *self; - __asm__ ("movl %%gs:0,%0" : "=r" (self) ); + __asm__ __volatile__ ("movl %%gs:0,%0" : "=r" (self) ); return self; } |