Page MenuHomeFreeBSD

D45829.diff
No OneTemporary

D45829.diff

diff --git a/lib/libthr/arch/i386/include/pthread_md.h b/lib/libthr/arch/i386/include/pthread_md.h
--- a/lib/libthr/arch/i386/include/pthread_md.h
+++ b/lib/libthr/arch/i386/include/pthread_md.h
@@ -47,8 +47,8 @@
{
struct pthread *thr;
- __asm __volatile("movl %%gs:%1, %0" : "=r" (thr)
- : "m" (*(volatile u_int *)offsetof(struct tcb, tcb_thread)));
+ __asm __volatile("movl %%gs:%c1, %0" : "=r" (thr)
+ : "i" (offsetof(struct tcb, tcb_thread)));
return (thr);
}

File Metadata

Mime Type
text/plain
Expires
Wed, Oct 2, 10:09 AM (20 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
10272385
Default Alt Text
D45829.diff (483 B)

Event Timeline