diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2010-07-29 18:44:10 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2010-07-29 18:44:10 +0000 |
| commit | 536af0d751b63fc340205a358621ee862989978d (patch) | |
| tree | ca3924e0572a2a29f202c1fdbe307006a9bf6eed /sys/amd64 | |
| parent | 97a012f24adbcedb5308141353af05e74e656944 (diff) | |
Notes
Diffstat (limited to 'sys/amd64')
| -rw-r--r-- | sys/amd64/include/pcpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/include/pcpu.h b/sys/amd64/include/pcpu.h index a55627fc1df5..c4b0c440c7df 100644 --- a/sys/amd64/include/pcpu.h +++ b/sys/amd64/include/pcpu.h @@ -216,12 +216,12 @@ extern struct pcpu *pcpup; #define PCPU_PTR(member) __PCPU_PTR(pc_ ## member) #define PCPU_SET(member, val) __PCPU_SET(pc_ ## member, val) -static __inline struct thread * +static __inline __pure2 struct thread * __curthread(void) { struct thread *td; - __asm __volatile("movq %%gs:0,%0" : "=r" (td)); + __asm("movq %%gs:0,%0" : "=r" (td)); return (td); } #define curthread (__curthread()) |
