From de3ef24a0392168a0d34afad9762f4dfe7cdfccd Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 24 Oct 2013 10:52:40 +0200 Subject: [PATCH] Move cpu_spinwait() definition --- rtemsbsd/include/machine/cpu.h | 2 ++ rtemsbsd/include/machine/rtems-bsd-config.h.in | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/rtemsbsd/include/machine/cpu.h b/rtemsbsd/include/machine/cpu.h index d63ac715..7ac6e33d 100644 --- a/rtemsbsd/include/machine/cpu.h +++ b/rtemsbsd/include/machine/cpu.h @@ -22,6 +22,8 @@ #error "the header file must be included first" #endif +#define cpu_spinwait() do { } while (0) + /* FIXME: This implementation is a security problem */ static __inline uint64_t get_cyclecount(void) diff --git a/rtemsbsd/include/machine/rtems-bsd-config.h.in b/rtemsbsd/include/machine/rtems-bsd-config.h.in index 9e0cedcb..1eff742a 100644 --- a/rtemsbsd/include/machine/rtems-bsd-config.h.in +++ b/rtemsbsd/include/machine/rtems-bsd-config.h.in @@ -140,7 +140,4 @@ extern rtems_chain_control rtems_bsd_callout_chain; extern rtems_chain_control rtems_bsd_malloc_chain; -/* CPU definitions */ -#define cpu_spinwait() /* nothing */ - #endif /* _RTEMS_BSD_MACHINE_RTEMS_BSD_CONFIG_H_ */