Skip to content
Commit b32c5e2a authored by Yong Cong Sin's avatar Yong Cong Sin Committed by Alberto Escolar
Browse files

arch: riscv: only use z_riscv_fatal_error_csf if CONFIG_EXCEPTION_DEBUG



Use `z_riscv_fatal_error_csf` that expects the
callee-saved-registers pointer only if `CONFIG_EXCEPTION_DEBUG`
is enabled, otherwise use `z_riscv_fatal_error`, as there can
be garbage in the `a2`.

Signed-off-by: default avatarYong Cong Sin <ycsin@meta.com>
parent 6a0cdb4e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment