aboutsummaryrefslogtreecommitdiff
path: root/sys/arm64
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2016-04-25 17:32:08 +0000
committerAndrew Turner <andrew@FreeBSD.org>2016-04-25 17:32:08 +0000
commitad76caf6420402e3c9242d29962b1f4897cbdcb6 (patch)
treee4a586535d340fc169ee01a7f5f12457d77cd7dd /sys/arm64
parent52a510ace98c59da1484bf4f11951f7248a89bb1 (diff)
Notes
Diffstat (limited to 'sys/arm64')
-rw-r--r--sys/arm64/include/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm64/include/cpu.h b/sys/arm64/include/cpu.h
index 520729c00247..764383785176 100644
--- a/sys/arm64/include/cpu.h
+++ b/sys/arm64/include/cpu.h
@@ -50,7 +50,7 @@
#define cpu_getstack(td) ((td)->td_frame->tf_sp)
#define cpu_setstack(td, sp) ((td)->td_frame->tf_sp = (sp))
-#define cpu_spinwait() /* nothing */
+#define cpu_spinwait() __asm __volatile("yield" ::: "memory")
/* Extract CPU affinity levels 0-3 */
#define CPU_AFF0(mpidr) (u_int)(((mpidr) >> 0) & 0xff)