Changeset 3990b45 in rtems-libbsd for rtemsbsd


Ignore:
Timestamp:
Aug 30, 2018, 8:44:25 AM (15 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
afaeccc05a556f6aa25ba044a7e49d6aa634a59e, master
Children:
3b8f03b
Parents:
0f9d58f
git-author:
Sebastian Huber <sebastian.huber@…> (08/30/18 08:44:25)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/11/18 09:37:34)
Message:

Use rtems_counter_read() for get_cyclecount()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/include/machine/cpu.h

    r0f9d58f r3990b45  
    2323#endif
    2424
     25#include <rtems/counter.h>
     26
    2527#define cpu_spinwait() do { } while (0)
    2628
    27 /* FIXME: This implementation is a security problem */
    28 static __inline uint64_t
     29static __inline rtems_counter_ticks
    2930get_cyclecount(void)
    3031{
    31         return rtems_clock_get_ticks_since_boot();
     32        return rtems_counter_read();
    3233}
    3334
Note: See TracChangeset for help on using the changeset viewer.