Kinsey Moore started a new discussion on bsps/riscv/riscv/clock/clockdrv.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1086#note_143645 > { > - riscv_timecounter *tc; > - volatile RISCV_CLINT_regs *clint; > + riscv_timecounter *tc = (riscv_timecounter *) base; > + uint32_t timecount = 0; > + > + (void) tc; > + > +#ifndef RISCV_USE_S_MODE > + timecount = riscv_clint->mtime.val_32[0]; > +#else > > - tc = (riscv_timecounter *) base; > - clint = tc->clint; > - return clint->mtime.val_32[0]; > +#endif Empty `#else` clause? -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1086#note_143645 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
