RTEMS | RISC-V: add support for using the MMU in S-Mode (!1182)

Gedare Bloom (@gedare) gitlab at rtems.org
Tue Apr 28 22:22:47 UTC 2026




Gedare Bloom commented on a discussion on bsps/riscv/include/bsp/riscv-mmu.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1182#note_149204

 > + */
 > +void riscv_mmu_setup_translation_table(
 > +  riscv_mmu_control *control
 > +);
 > +
 > +void riscv_mmu_setup( void );
 > +
 > +BSP_START_TEXT_SECTION static inline void
 > +riscv_mmu_enable( const riscv_mmu_control *control )
 > +{
 > +  /* Enable MMU */
 > +  unsigned long value;
 > +#if __riscv_xlen == 64
 > +  value = (uint64_t) SPTBR_MODE_SV39 << 60;
 > +#else
 > +  value = (uint32_t) SPTBR_MODE_SV32 << 31;

fixed

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1182#note_149204
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/20260428/3ad46e93/attachment-0001.htm>


More information about the bugs mailing list