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

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




Gedare Bloom commented on a discussion on bsps/riscv/shared/mmu/mmu-setup.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1182#note_149206

 > +    case 1:
 > +#if __riscv_xlen == 32
 > +      shift_bits = 12;
 > +#else
 > +      shift_bits = 21;
 > +#endif
 > +      break;
 > +
 > +    default:
 > +      bsp_fatal( RISCV_FATAL_MMU_CANNOT_MAP_BLOCK );
 > +  }
 > +
 > +#if __riscv_xlen == 32
 > +  mask = 0x3FF;
 > +#else
 > +  mask = 0x1FF;

fixed

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1182#note_149206
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/949b4d98/attachment-0001.htm>


More information about the bugs mailing list