Files
esp-idf/components/esp_hw_support/include
Marius Vikhammer 8e66081ae3 fix(esp_hw_support): guard CSR_PRV_MODE usage in esp_cpu_get_curr_privilege_level
CSR_PRV_MODE is only defined for a subset of RISC-V targets. Targets
that lack it (e.g. esp32h21, esp32h4, esp32s31) caused an assembler
error. Fall back to returning -1 (unsupported) when the CSR is not
defined.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-26 16:00:07 +08:00
..