Replace movq/%q0 with mov/%0 in THREAD_SELF
This commit is contained in:
parent
c0d2c8538a
commit
512ec530c7
|
@ -1,3 +1,8 @@
|
||||||
|
2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* sysdeps/x86_64/tls.h (THREAD_SELF): Replace movq/%q0 with
|
||||||
|
mov/%0.
|
||||||
|
|
||||||
2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
|
2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
|
* sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
|
||||||
|
|
|
@ -174,7 +174,7 @@ typedef struct
|
||||||
do not get optimized away. */
|
do not get optimized away. */
|
||||||
# define THREAD_SELF \
|
# define THREAD_SELF \
|
||||||
({ struct pthread *__self; \
|
({ struct pthread *__self; \
|
||||||
asm ("movq %%fs:%c1,%q0" : "=r" (__self) \
|
asm ("mov %%fs:%c1,%0" : "=r" (__self) \
|
||||||
: "i" (offsetof (struct pthread, header.self))); \
|
: "i" (offsetof (struct pthread, header.self))); \
|
||||||
__self;})
|
__self;})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue