Page MenuHomeFreeBSD

D17615.diff
No OneTemporary

D17615.diff

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

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)

Event Timeline