summaryrefslogtreecommitdiffstats
path: root/sys/arm
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2004-08-03 18:44:27 +0000
committermux <mux@FreeBSD.org>2004-08-03 18:44:27 +0000
commit35780dc21adda12f4e93177415556e6698e017e4 (patch)
treede3272d2386247caa65d7fbb3bf4c7418c6ebc1b /sys/arm
parent81234cca4a890862a2410bb1de1a553a60c285a6 (diff)
downloadFreeBSD-src-35780dc21adda12f4e93177415556e6698e017e4.zip
FreeBSD-src-35780dc21adda12f4e93177415556e6698e017e4.tar.gz
Instead of calling ia32_pause() conditionally on __i386__ or __amd64__
being defined, define and use a new MD macro, cpu_spinwait(). It only expands to something on i386 and amd64, so the compiled code should be identical. Name of the macro found by: jhb Reviewed by: jhb
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/include/cpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/arm/include/cpu.h b/sys/arm/include/cpu.h
index 2130618..417a2fe 100644
--- a/sys/arm/include/cpu.h
+++ b/sys/arm/include/cpu.h
@@ -32,6 +32,7 @@ get_cyclecount(void)
#define cpu_getstack(td) ((td)->td_frame->tf_usr_sp)
#define cpu_setstack(td, sp) ((td)->td_frame->tf_usr_sp = (sp))
+#define cpu_spinwait() /* nothing */
#define ARM_NVEC 8
#define ARM_VEC_ALL 0xffffffff
OpenPOWER on IntegriCloud