summaryrefslogtreecommitdiff
path: root/lib/libpthread/arch/amd64/include/pthread_md.h
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2004-08-25 23:42:40 +0000
committerDavid Xu <davidxu@FreeBSD.org>2004-08-25 23:42:40 +0000
commit28f5d1b766ecd7035ac18bfe10a85c3d002ffc1a (patch)
tree0379d59d47f54283f12d4af4aa95ac1996075424 /lib/libpthread/arch/amd64/include/pthread_md.h
parenta733008573ed27639cbc6ffa065b042fba5b5aaf (diff)
Notes
Diffstat (limited to 'lib/libpthread/arch/amd64/include/pthread_md.h')
-rw-r--r--lib/libpthread/arch/amd64/include/pthread_md.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/arch/amd64/include/pthread_md.h b/lib/libpthread/arch/amd64/include/pthread_md.h
index 4f903c57fd2b..a7da5dfaf4cf 100644
--- a/lib/libpthread/arch/amd64/include/pthread_md.h
+++ b/lib/libpthread/arch/amd64/include/pthread_md.h
@@ -91,7 +91,7 @@ struct tcb {
__asm __volatile("movq %%fs:%1, %0" \
: "=r" (__i) \
: "m" (*(u_long *)(__kcb_offset(name)))); \
- __result = *(__kcb_type(name) *)&__i; \
+ __result = (__kcb_type(name))__i; \
\
__result; \
})
@@ -103,7 +103,7 @@ struct tcb {
__kcb_type(name) __val = (val); \
\
u_long __i; \
- __i = *(u_long *)&__val; \
+ __i = (u_long)__val; \
__asm __volatile("movq %1,%%fs:%0" \
: "=m" (*(u_long *)(__kcb_offset(name))) \
: "r" (__i)); \