[rtems-libbsd commit] Use format of other RTEMS machine header files
Sebastian Huber
sebh at rtems.org
Wed Apr 18 15:25:08 UTC 2012
Module: rtems-libbsd
Branch: master
Commit: b086b5c718e1cc46c0621efe7aaeaee8eaed2400
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=b086b5c718e1cc46c0621efe7aaeaee8eaed2400
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Apr 18 17:27:54 2012 +0200
Use format of other RTEMS machine header files
---
rtemsbsd/freebsd/machine/cpu.h | 19 ++++++++-----------
1 files changed, 8 insertions(+), 11 deletions(-)
diff --git a/rtemsbsd/freebsd/machine/cpu.h b/rtemsbsd/freebsd/machine/cpu.h
index 625cd96..eafeca9 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_ */
More information about the vc
mailing list