Cast to uint64_t for 64-bit store

This commit is contained in:
H.J. Lu 2012-09-19 06:12:37 -07:00
parent 63bbedd4c2
commit ae30640a32
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2012-09-19 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/i386/tls.h (THREAD_SETMEM): Cast to uint64_t for
64-bit store.
(THREAD_SETMEM_NC): Likewise.
2012-09-14 Jeff Law <law@redhat.com>
[BZ #14583]

View File

@ -343,7 +343,7 @@ union user_desc_init
\
asm volatile ("movl %%eax,%%gs:%P1\n\t" \
"movl %%edx,%%gs:%P2" : \
: "A" (value), \
: "A" ((uint64_t) (value)), \
"i" (offsetof (struct pthread, member)), \
"i" (offsetof (struct pthread, member) + 4)); \
}})
@ -370,7 +370,7 @@ union user_desc_init
\
asm volatile ("movl %%eax,%%gs:%P1(,%2,8)\n\t" \
"movl %%edx,%%gs:4+%P1(,%2,8)" : \
: "A" (value), \
: "A" ((uint64_t) (value)), \
"i" (offsetof (struct pthread, member)), \
"r" (idx)); \
}})