Use uint64_t on 64-bit integer
This commit is contained in:
parent
512ec530c7
commit
a04e06bc4c
|
@ -1,3 +1,9 @@
|
||||||
|
2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* sysdeps/x86_64/tls.h (THREAD_SETMEM): Use uint64_t on 64-bit
|
||||||
|
integer.
|
||||||
|
(THREAD_SETMEM_NC): Likewise.
|
||||||
|
|
||||||
2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
|
2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* sysdeps/x86_64/tls.h (THREAD_SELF): Replace movq/%q0 with
|
* sysdeps/x86_64/tls.h (THREAD_SELF): Replace movq/%q0 with
|
||||||
|
|
|
@ -261,7 +261,7 @@ typedef struct
|
||||||
abort (); \
|
abort (); \
|
||||||
\
|
\
|
||||||
asm volatile ("movq %q0,%%fs:%P1" : \
|
asm volatile ("movq %q0,%%fs:%P1" : \
|
||||||
: IMM_MODE ((unsigned long int) value), \
|
: IMM_MODE ((uint64_t) value), \
|
||||||
"i" (offsetof (struct pthread, member))); \
|
"i" (offsetof (struct pthread, member))); \
|
||||||
}})
|
}})
|
||||||
|
|
||||||
|
@ -286,7 +286,7 @@ typedef struct
|
||||||
abort (); \
|
abort (); \
|
||||||
\
|
\
|
||||||
asm volatile ("movq %q0,%%fs:%P1(,%q2,8)" : \
|
asm volatile ("movq %q0,%%fs:%P1(,%q2,8)" : \
|
||||||
: IMM_MODE ((unsigned long int) value), \
|
: IMM_MODE ((uint64_t) value), \
|
||||||
"i" (offsetof (struct pthread, member[0])), \
|
"i" (offsetof (struct pthread, member[0])), \
|
||||||
"r" (idx)); \
|
"r" (idx)); \
|
||||||
}})
|
}})
|
||||||
|
|
Loading…
Reference in New Issue