mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 09:05:25 +08:00
Move cpu_spinwait() definition
This commit is contained in:
@@ -22,6 +22,8 @@
|
|||||||
#error "the header file <freebsd/machine/rtems-bsd-config.h> must be included first"
|
#error "the header file <freebsd/machine/rtems-bsd-config.h> must be included first"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define cpu_spinwait() do { } while (0)
|
||||||
|
|
||||||
/* FIXME: This implementation is a security problem */
|
/* FIXME: This implementation is a security problem */
|
||||||
static __inline uint64_t
|
static __inline uint64_t
|
||||||
get_cyclecount(void)
|
get_cyclecount(void)
|
||||||
|
@@ -140,7 +140,4 @@ extern rtems_chain_control rtems_bsd_callout_chain;
|
|||||||
|
|
||||||
extern rtems_chain_control rtems_bsd_malloc_chain;
|
extern rtems_chain_control rtems_bsd_malloc_chain;
|
||||||
|
|
||||||
/* CPU definitions */
|
|
||||||
#define cpu_spinwait() /* nothing */
|
|
||||||
|
|
||||||
#endif /* _RTEMS_BSD_MACHINE_RTEMS_BSD_CONFIG_H_ */
|
#endif /* _RTEMS_BSD_MACHINE_RTEMS_BSD_CONFIG_H_ */
|
||||||
|
Reference in New Issue
Block a user