diff options
author | Atish Patra <atish.patra@wdc.com> | 2020-05-09 16:47:27 -0700 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-05-10 10:02:49 +0530 |
commit | 6a053f6e6cb4db8a291239e882e9a778c2738e0a (patch) | |
tree | d4f6d52c7b486c51860c5a9eb9f96d5d176bef87 /include/sbi/sbi_hart.h | |
parent | 79d0fadb0681acbba55bb6b4afcd3c2e6f725928 (diff) |
lib: Add support for hart specific features
There may be some features which are hart specific rather than a platform
specific feature. Add a framework to support that.
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Tested-by: Jonathan Balkind <jbalkind@cs.princeton.edu>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'include/sbi/sbi_hart.h')
-rw-r--r-- | include/sbi/sbi_hart.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sbi/sbi_hart.h b/include/sbi/sbi_hart.h index 6a2ba4e..e285bdf 100644 --- a/include/sbi/sbi_hart.h +++ b/include/sbi/sbi_hart.h @@ -26,6 +26,7 @@ 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); void __attribute__((noreturn)) sbi_hart_hang(void); |