RTEMS | Draft: riscv: s-mode use SBI for timer, reset, and SMP support (!1108)

Gedare Bloom (@gedare) gitlab at rtems.org
Fri Mar 6 02:30:47 UTC 2026



Gedare Bloom created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1108

Project:Branches: gedare/rtems:riscv-sbi-smp to rtems/rtos/rtems:main
Author:   Gedare Bloom
Assignee: Gedare Bloom


## Summary

This is basically ready, but it includes the commits from !1086 and !1092.

Use the SBI in s-mode to handle timers if the Sstc extension is not available for s-mode timers, bsp reset (shutdown), and to support SMP IPIs. 

SMP support is working well.

Testing smptests:

With S-Mode:
```
Passed:        59
Failed:         1
User Input:     0
Expected Fail:  0
Indeterminate:  0
Benchmark:      0
Timeout:        0
Test too long:  0
Invalid:        0
Wrong Version:  0
Wrong Build:    0
Wrong Tools:    0
Wrong Header:   0
-----------------
Total:         60

Failures:
 smpmrsp01.exe
```

Without S-Mode (using m-mode):
```
Passed:        59
Failed:         1
User Input:     0
Expected Fail:  0
Indeterminate:  0
Benchmark:      0
Timeout:        0
Test too long:  0
Invalid:        0
Wrong Version:  0
Wrong Build:    0
Wrong Tools:    0
Wrong Header:   0
-----------------
Total:         60

Failures:
 smpmrsp01.exe
```

Closes #3337 

Fixes #5486

## Generative AI

<!-- If you have used AI please use the "AI Contribution" template otherwise leave this blank see our fulls statement at https://www.rtems.org/generative-ai/-->


<!-- Default settings, if it is a dropdown it will set after submission -->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1108
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/20260306/701783d2/attachment-0001.htm>


More information about the bugs mailing list