diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-05-11 09:00:15 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-05-19 06:49:42 +0300 |
commit | 63b0f5f71a4d6bf8539a8cbfa27228dc76e7d71a (patch) | |
tree | abbcdde88ebf1a646ef71829799718aa01a2fb3b /include | |
parent | 3a8fc8135714e39bef99cbf2a4b31e6f2f19a929 (diff) | |
download | opensbi-63b0f5f71a4d6bf8539a8cbfa27228dc76e7d71a.tar.xz |
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 <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sbi/sbi_hart.h | 6 |
1 files changed, 3 insertions, 3 deletions
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); |