summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/freebsd/machine/cpu.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-04-18 17:27:54 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-04-18 17:27:54 +0200
commitb086b5c718e1cc46c0621efe7aaeaee8eaed2400 (patch)
treed078a0734d3bf2d98f5791393b50413fe59f441a /rtemsbsd/freebsd/machine/cpu.h
parentRemove superfluous include, format (diff)
downloadrtems-libbsd-b086b5c718e1cc46c0621efe7aaeaee8eaed2400.tar.bz2
Use format of other RTEMS machine header files
Diffstat (limited to 'rtemsbsd/freebsd/machine/cpu.h')
-rw-r--r--rtemsbsd/freebsd/machine/cpu.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/rtemsbsd/freebsd/machine/cpu.h b/rtemsbsd/freebsd/machine/cpu.h
index 625cd962..eafeca93 100644
--- a/rtemsbsd/freebsd/machine/cpu.h
+++ b/rtemsbsd/freebsd/machine/cpu.h
@@ -15,20 +15,17 @@
* http://www.rtems.com/license/LICENSE.
*/
-#ifndef _MACHINE_CPU_H_
-#define _MACHINE_CPU_H_
+#ifndef _RTEMS_BSD_MACHINE_CPU_H_
+#define _RTEMS_BSD_MACHINE_CPU_H_
+#ifndef _RTEMS_BSD_MACHINE_RTEMS_BSD_CONFIG_H_
+#error "the header file <freebsd/machine/rtems-bsd-config.h> must be included first"
+#endif
-#include <string.h>
-#include <stdio.h>
-#include <rtems.h>
-
-#ifdef _KERNEL
-static __inline u_int64_t
+static __inline uint64_t
get_cyclecount(void)
{
- return rtems_clock_get_ticks_since_boot();
+ return rtems_clock_get_ticks_since_boot();
}
-#endif /* _KERNEL */
-#endif /* !MACHINE_CPU_H */
+#endif /* _RTEMS_BSD_MACHINE_CPU_H_ */