Re: [PATCH] riscv: Add macros for software check and hardware error exception codes

From: Paul Walmsley

Date: Sat Jan 24 2026 - 02:57:19 EST


Hi Austin,

On Thu, 22 Jan 2026, Austin Kim wrote:

> The latest RISC-V Privileged specification defines new synchronous
> exception codes in the scause register:
>
> 18: Software check
> 19: Hardware error
>
> Link: https://docs.riscv.org/reference/isa/priv/supervisor.html
> - 12.1.8. Supervisor Cause (scause) Register
>
> Add these macros for future use.
>
> Signed-off-by: Austin Kim <austindh.kim@xxxxxxxxx>

Thanks for the patch. Though, maybe it makes more sense to add these
along with code that uses them?


- Paul