mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 17:05:45 +08:00
Move files to match FreeBSD layout
This commit is contained in:
31
rtemsbsd/include/machine/cpu.h
Normal file
31
rtemsbsd/include/machine/cpu.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @ingroup rtems_bsd_rtems
|
||||
*
|
||||
* @brief TODO.
|
||||
*/
|
||||
|
||||
/*
|
||||
* COPYRIGHT (c) 2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*/
|
||||
|
||||
#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
|
||||
|
||||
static __inline uint64_t
|
||||
get_cyclecount(void)
|
||||
{
|
||||
return rtems_clock_get_ticks_since_boot();
|
||||
}
|
||||
|
||||
#endif /* _RTEMS_BSD_MACHINE_CPU_H_ */
|
Reference in New Issue
Block a user