mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-11-19 02:21:38 +00:00
smrnmi_handlers_init returned void, so a failed callback went unreported and NMIE was enabled anyway. Change it to return int and skip enabling NMIE on failure. Also update the doc comment on rnmi_handler to use SBI_OK instead of SBI_SUCCESS, so both callbacks consistently reference the correct firmware-internal success constant rather than the ecall-facing one. Signed-off-by: Nylon Chen <nylon.chen@sifive.com> Co-developed-by: Nia Su <nia.su@sifive.com> Signed-off-by: Nia Su <nia.su@sifive.com> Reviewed-by: Evgeny Voevodin <evvoevod@tenstorrent.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260915-smrnmi-context-restore-v3-2-e9dd31152515@sifive.com Signed-off-by: Anup Patel <anup@brainfault.org>