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

Paul Walmsley pjw at kernel.org
Fri Jan 23 23:57:11 PST 2026


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 at gmail.com>

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


- Paul



More information about the linux-riscv mailing list