RTEMS | risc-v: support running in s-mode (!1086)

Kinsey Moore (@opticron) gitlab at rtems.org
Thu Feb 26 23:37:22 UTC 2026




Kinsey Moore started a new discussion on bsps/riscv/riscv/clock/clockdrv.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1086#note_143648

 >  
 >  static uint32_t riscv_clock_get_timecount(struct timecounter *base)
 >  {
 > -  riscv_timecounter *tc;
 > -  volatile RISCV_CLINT_regs *clint;
 > +  riscv_timecounter *tc = (riscv_timecounter *) base;
 > +  uint32_t timecount = 0;
 > +
 > +  (void) tc;

`tc` can be dropped because it is unused. `base` will need a `(void)`.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1086#note_143648
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260226/dfd5e88d/attachment-0001.htm>


More information about the bugs mailing list