forked from Mirrors/opensbi
		
	lib: sbi_misaligned_ldst: Remove mcause, scratch and hartid parameters
We remove mcause, scratch and hartid parameters from various functions for misaligned load/store handling because we can always get current HART id and current scratch pointer using just one CSR access. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
		@@ -13,16 +13,11 @@
 | 
			
		||||
#include <sbi/sbi_types.h>
 | 
			
		||||
 | 
			
		||||
struct sbi_trap_regs;
 | 
			
		||||
struct sbi_scratch;
 | 
			
		||||
 | 
			
		||||
int sbi_misaligned_load_handler(u32 hartid, ulong mcause,
 | 
			
		||||
				ulong addr, ulong tval2, ulong tinst,
 | 
			
		||||
				struct sbi_trap_regs *regs,
 | 
			
		||||
				struct sbi_scratch *scratch);
 | 
			
		||||
int sbi_misaligned_load_handler(ulong addr, ulong tval2, ulong tinst,
 | 
			
		||||
				struct sbi_trap_regs *regs);
 | 
			
		||||
 | 
			
		||||
int sbi_misaligned_store_handler(u32 hartid, ulong mcause,
 | 
			
		||||
				 ulong addr, ulong tval2, ulong tinst,
 | 
			
		||||
				 struct sbi_trap_regs *regs,
 | 
			
		||||
				 struct sbi_scratch *scratch);
 | 
			
		||||
int sbi_misaligned_store_handler(ulong addr, ulong tval2, ulong tinst,
 | 
			
		||||
				 struct sbi_trap_regs *regs);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user