lib: sbi: Simplify parameters of misaligned and access fault handlers
authorAnup Patel <apatel@ventanamicro.com>
Mon, 11 Mar 2024 09:51:53 +0000 (15:21 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 19 Mar 2024 06:01:28 +0000 (11:31 +0530)
commitfea33a933498a34f2375d6ac53d9d932d373eefa
tree51c3f15f9c3359ab098d3d9a116e0586cfe16a61
parentabea949721bc635cfe39e34adc501d7be87db8ae
lib: sbi: Simplify parameters of misaligned and access fault handlers

The struct sbi_trap_context already has the information needed by
misaligned load/store and access fault load/store handlers so directly
pass struct sbi_trap_context pointer to these functions.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Tested-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Clément Léger <cleger@rivosinc.com>
include/sbi/sbi_trap_ldst.h
lib/sbi/sbi_trap.c
lib/sbi/sbi_trap_ldst.c