apache / nuttx-apps

Apache NuttX Apps is a collection of tools, shells, network utilities, libraries, interpreters and can be used with the NuttX RTOS
https://nuttx.apache.org/
Apache License 2.0
263 stars 488 forks source link

benchmarks/ramspeed: Don't expose interrupt control with kernel configuration. #2393

Closed g2gps closed 1 month ago

g2gps commented 1 month ago

Summary

Don't expose interrupt control with kernel configuration.

enter_critical_section and leave_critical_section aren't reliable interfaces to expose in usermode, as they aren't available if CONFIG_IRQCOUNT is enabled.

Impact

Allows the ramspeed benchmark to be built when both CONFIG_BUILD_KERNEL and CONFIG_IRQCOUNT are enabled.

Testing

Litex based board with the above configuration enabled.

g2gps commented 1 month ago

Should be a bit clearer, and covers CONFIG_BUILD_PROTECTED.