summaryrefslogtreecommitdiffstats
path: root/sys/ia64/include
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ia64/include')
-rw-r--r--sys/ia64/include/pcpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ia64/include/pcpu.h b/sys/ia64/include/pcpu.h
index 3c6e6a7..58403aa 100644
--- a/sys/ia64/include/pcpu.h
+++ b/sys/ia64/include/pcpu.h
@@ -70,12 +70,12 @@ struct pcpu;
register struct pcpu *pcpup __asm__("r13");
-static __inline struct thread *
+static __inline __pure2 struct thread *
__curthread(void)
{
struct thread *td;
- __asm __volatile("ld8.acq %0=[r13]" : "=r"(td));
+ __asm("ld8.acq %0=[r13]" : "=r"(td));
return (td);
}
#define curthread (__curthread())
OpenPOWER on IntegriCloud