From 63b0f5f71a4d6bf8539a8cbfa27228dc76e7d71a Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Mon, 11 May 2020 11:30:15 +0530 Subject: include: sbi: Use scratch pointer as parmeter in HART feature APIs It makes more sense to have scratch pointer as parameter in HART feature APIs because: 1. We already have scratch pointer at places where these APIs are used. 2. This is consistent with lot of other APIs in sbi_hart.h Signed-off-by: Anup Patel Reviewed-by: Atish Patra --- include/sbi/sbi_hart.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/sbi/sbi_hart.h') diff --git a/include/sbi/sbi_hart.h b/include/sbi/sbi_hart.h index a624dfd..ac7a067 100644 --- a/include/sbi/sbi_hart.h +++ b/include/sbi/sbi_hart.h @@ -41,9 +41,9 @@ void sbi_hart_delegation_dump(struct sbi_scratch *scratch); void sbi_hart_pmp_dump(struct sbi_scratch *scratch); int sbi_hart_pmp_check_addr(struct sbi_scratch *scratch, unsigned long daddr, unsigned long attr); -bool sbi_hart_has_feature(u32 hartid, unsigned long feature); -unsigned long sbi_hart_get_features(u32 hartid); -void sbi_hart_get_features_str(u32 hartid, char *features_str, int nfstr); +bool sbi_hart_has_feature(struct sbi_scratch *scratch, unsigned long feature); +void sbi_hart_get_features_str(struct sbi_scratch *scratch, + char *features_str, int nfstr); void __attribute__((noreturn)) sbi_hart_hang(void); -- cgit v1.2.3