Re: [rtems commit] riscv: Implement CPU counter

2018-07-17 Thread Sebastian Huber
On 13/07/18 11:48, Hesham Almatary wrote: On Thu, Jul 12, 2018 at 9:41 PM, Sebastian Huber wrote: - Am 6. Jul 2018 um 15:11 schrieb Hesham Almatary heshamelmat...@gmail.com: On Fri, 6 Jul 2018 at 1:28 pm, Sebastian Huber wrote: [...] -CPU_Counter_ticks _CPU_Counter_read( void ); +sta

Re: [rtems commit] riscv: Implement CPU counter

2018-07-13 Thread Hesham Almatary
On Thu, Jul 12, 2018 at 9:41 PM, Sebastian Huber wrote: > > > > - Am 6. Jul 2018 um 15:11 schrieb Hesham Almatary > heshamelmat...@gmail.com: > > > On Fri, 6 Jul 2018 at 1:28 pm, Sebastian Huber wrote: > [...] > >> -CPU_Counter_ticks _CPU_Counter_read( void ); > >> +static inline CPU_Counter

Re: [rtems commit] riscv: Implement CPU counter

2018-07-12 Thread Sebastian Huber
- Am 6. Jul 2018 um 15:11 schrieb Hesham Almatary heshamelmat...@gmail.com: > On Fri, 6 Jul 2018 at 1:28 pm, Sebastian Huber wrote: [...] >> -CPU_Counter_ticks _CPU_Counter_read( void ); >> +static inline CPU_Counter_ticks _CPU_Counter_read( void ) >> +{ >> + unsigned long ticks; >> + >> +