Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103613724
D45828.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
488 B
Referenced Files
None
Subscribers
None
D45828.diff
View Options
diff --git a/lib/libthr/arch/amd64/include/pthread_md.h b/lib/libthr/arch/amd64/include/pthread_md.h
--- a/lib/libthr/arch/amd64/include/pthread_md.h
+++ b/lib/libthr/arch/amd64/include/pthread_md.h
@@ -47,8 +47,8 @@
{
struct pthread *thr;
- __asm __volatile("movq %%fs:%1, %0" : "=r" (thr)
- : "m" (*(volatile u_long *)offsetof(struct tcb, tcb_thread)));
+ __asm __volatile("movq %%fs:%c1, %0" : "=r" (thr)
+ : "i" (offsetof(struct tcb, tcb_thread)));
return (thr);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 28, 3:54 AM (19 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14901433
Default Alt Text
D45828.diff (488 B)
Attached To
Mode
D45828: libthr _get_curthread amd64: quiet gcc -Warray-bounds
Attached
Detach File
Event Timeline
Log In to Comment