Kconfig 829 B

12345678910111213141516171819202122232425262728
  1. menu "Memory protection"
  2. config RT_USING_MEM_PROTECTION
  3. bool "Enable memory protection"
  4. default n
  5. select RT_USING_HEAP
  6. config RT_USING_HW_STACK_GUARD
  7. bool "Enable hardware stack guard"
  8. default n
  9. select RT_USING_MEM_PROTECTION
  10. if RT_USING_MEM_PROTECTION
  11. config USE_MEM_PROTECTION_EXAMPLES
  12. bool "Use memory protection examples"
  13. default y
  14. config NUM_MEM_REGIONS
  15. int "Total number of memory protection regions supported by hardware"
  16. config NUM_EXCLUSIVE_REGIONS
  17. int "Total number of exclusive memory regions added using rt_mprotect_add_exclusive_region API"
  18. config NUM_CONFIGURABLE_REGIONS
  19. int "Maximum number of configurable memory regions for each thread, excluding stack guard and exclusive regions added using rt_mprotect_add_exclusive_region API"
  20. endif
  21. endmenu