From 626467cfd96f99230ff5d83f98562f23aee291c3 Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Thu, 19 Mar 2020 17:37:54 +0530 Subject: lib: Remove scratch parameter from unpriv load/store functions The scratch parameter of unpriv load/store functions is now redundant hence we remove it. Signed-off-by: Anup Patel Reviewed-by: Atish Patra --- include/sbi/sbi_unpriv.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'include') diff --git a/include/sbi/sbi_unpriv.h b/include/sbi/sbi_unpriv.h index 747ba731..8cbd3de0 100644 --- a/include/sbi/sbi_unpriv.h +++ b/include/sbi/sbi_unpriv.h @@ -17,12 +17,10 @@ struct sbi_trap_info; #define DECLARE_UNPRIVILEGED_LOAD_FUNCTION(type) \ type sbi_load_##type(const type *addr, \ - struct sbi_scratch *scratch, \ struct sbi_trap_info *trap); #define DECLARE_UNPRIVILEGED_STORE_FUNCTION(type) \ void sbi_store_##type(type *addr, type val, \ - struct sbi_scratch *scratch, \ struct sbi_trap_info *trap); DECLARE_UNPRIVILEGED_LOAD_FUNCTION(u8) @@ -38,7 +36,6 @@ DECLARE_UNPRIVILEGED_LOAD_FUNCTION(u64) DECLARE_UNPRIVILEGED_STORE_FUNCTION(u64) DECLARE_UNPRIVILEGED_LOAD_FUNCTION(ulong) -ulong sbi_get_insn(ulong mepc, struct sbi_scratch *scratch, - struct sbi_trap_info *trap); +ulong sbi_get_insn(ulong mepc, struct sbi_trap_info *trap); #endif -- cgit v1.3.1