lib: sbi: Simplify parameters of sbi_illegal_insn_handler()
authorAnup Patel <apatel@ventanamicro.com>
Mon, 11 Mar 2024 10:24:56 +0000 (15:54 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 19 Mar 2024 06:01:31 +0000 (11:31 +0530)
commitf414cf931eaf41c28d2750928108321d5006b178
tree4b765c678bd933522cc9d58b6ab7d46736e87856
parentfea33a933498a34f2375d6ac53d9d932d373eefa
lib: sbi: Simplify parameters of sbi_illegal_insn_handler()

The struct sbi_trap_context already has the information needed by
sbi_illegal_insn_handler() so directly pass struct sbi_trap_context
pointer to this function.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Tested-by: Samuel Holland <samuel.holland@sifive.com>
include/sbi/sbi_illegal_insn.h
lib/sbi/sbi_illegal_insn.c
lib/sbi/sbi_trap.c