diff options
author | Anup Patel <apatel@ventanamicro.com> | 2024-03-11 15:21:53 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2024-03-19 11:31:28 +0530 |
commit | fea33a933498a34f2375d6ac53d9d932d373eefa (patch) | |
tree | 51c3f15f9c3359ab098d3d9a116e0586cfe16a61 /include | |
parent | abea949721bc635cfe39e34adc501d7be87db8ae (diff) | |
download | opensbi-fea33a933498a34f2375d6ac53d9d932d373eefa.zip opensbi-fea33a933498a34f2375d6ac53d9d932d373eefa.tar.gz opensbi-fea33a933498a34f2375d6ac53d9d932d373eefa.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/sbi/sbi_trap_ldst.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/include/sbi/sbi_trap_ldst.h b/include/sbi/sbi_trap_ldst.h index 9cab4e4..8aee316 100644 --- a/include/sbi/sbi_trap_ldst.h +++ b/include/sbi/sbi_trap_ldst.h @@ -20,16 +20,12 @@ union sbi_ldst_data { ulong data_ulong; }; -int sbi_misaligned_load_handler(struct sbi_trap_regs *regs, - const struct sbi_trap_info *orig_trap); +int sbi_misaligned_load_handler(struct sbi_trap_context *tcntx); -int sbi_misaligned_store_handler(struct sbi_trap_regs *regs, - const struct sbi_trap_info *orig_trap); +int sbi_misaligned_store_handler(struct sbi_trap_context *tcntx); -int sbi_load_access_handler(struct sbi_trap_regs *regs, - const struct sbi_trap_info *orig_trap); +int sbi_load_access_handler(struct sbi_trap_context *tcntx); -int sbi_store_access_handler(struct sbi_trap_regs *regs, - const struct sbi_trap_info *orig_trap); +int sbi_store_access_handler(struct sbi_trap_context *tcntx); #endif |