Ignore:
Timestamp:
Jul 27, 2018, 12:47:17 PM (13 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
44c2d393
Parents:
65f52d0
git-author:
Sebastian Huber <sebastian.huber@…> (07/27/18 12:47:17)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/27/18 13:06:55)
Message:

riscv: Rework CPU counter support

Update #3433.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/riscv/include/rtems/score/cpu.h

    r65f52d0 rcfc9573  
    436436uint32_t _CPU_Counter_frequency( void );
    437437
     438extern volatile uint32_t * const _RISCV_Counter;
     439
    438440static inline CPU_Counter_ticks _CPU_Counter_read( void )
    439441{
    440   unsigned long ticks;
    441 
    442   __asm__ volatile ( "rdtime %0" : "=&r" ( ticks ) );
    443 
    444   return (uint32_t) ticks;
     442  return *_RISCV_Counter;
    445443}
    446444
Note: See TracChangeset for help on using the changeset viewer.