HomeFreeBSD

riscv timer: fix interrupt handling.

Description

riscv timer: fix interrupt handling.

Based on the spec the STIP bit of SIP register is read-only.

To clear STIP bit from supervisor we have to do an SBI call to firmware.
Upon reception of SBI request, the machine-mode firmware clears the STIP
bit in the MIP register.

This fixes operation on Codasip A730.

Reviewed by: mhorne
Differential Revision: https://reviews.freebsd.org/D49487

Details

Provenance
brAuthored on Mar 26 2025, 8:09 AM
Reviewer
mhorne
Differential Revision
D49487: riscv timer: fix interrupt handing
Parents
rGd97e44784bb5: aio_*(2): mention ENOSYS under ERRORS
Branches
Unknown
Tags
Unknown