Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107966266
D17615.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
638 B
Referenced Files
None
Subscribers
None
D17615.diff
View Options
Index: head/sys/amd64/include/pcpu.h
===================================================================
--- head/sys/amd64/include/pcpu.h
+++ head/sys/amd64/include/pcpu.h
@@ -227,8 +227,7 @@
{
struct thread *td;
- __asm("movq %%gs:%1,%0" : "=r" (td)
- : "m" (*(char *)OFFSETOF_CURTHREAD));
+ __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (OFFSETOF_CURTHREAD));
return (td);
}
#ifdef __clang__
@@ -242,7 +241,7 @@
{
struct pcb *pcb;
- __asm("movq %%gs:%1,%0" : "=r" (pcb) : "m" (*(char *)OFFSETOF_CURPCB));
+ __asm("movq %%gs:%P1,%0" : "=r" (pcb) : "n" (OFFSETOF_CURPCB));
return (pcb);
}
#define curpcb (__curpcb())
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 21, 1:13 AM (18 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15990975
Default Alt Text
D17615.diff (638 B)
Attached To
Mode
D17615: amd64: relax constraints in curthead and curpcb
Attached
Detach File
Event Timeline
Log In to Comment