diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-24 10:52:40 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-31 13:18:51 +0100 |
commit | de3ef24a0392168a0d34afad9762f4dfe7cdfccd (patch) | |
tree | bc5098c50ae13f829d01373c8f6896ed30122dc3 /rtemsbsd/include/machine | |
parent | Add TODO item (diff) | |
download | rtems-libbsd-de3ef24a0392168a0d34afad9762f4dfe7cdfccd.tar.bz2 |
Move cpu_spinwait() definition
Diffstat (limited to 'rtemsbsd/include/machine')
-rw-r--r-- | rtemsbsd/include/machine/cpu.h | 2 | ||||
-rw-r--r-- | 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 <freebsd/machine/rtems-bsd-config.h> 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_ */ |