summaryrefslogtreecommitdiff
path: root/include/sbi/sbi_hart.h
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@wdc.com>2018-12-21 03:13:37 +0300
committerDamien Le Moal <damien.lemoal@wdc.com>2018-12-21 09:09:13 +0300
commitaa68f0252f2a0749dee35bda309c397f79ae26a0 (patch)
tree1edc7262e0c70f0a391abbc4c009e42f8a303aad /include/sbi/sbi_hart.h
parentf003787455709a1a6c69c1b6ab6a02d4d767c325 (diff)
downloadopensbi-aa68f0252f2a0749dee35bda309c397f79ae26a0.tar.xz
Refine platform features control
Allow a platform to report its supported features in more details. The new features defined are: * SBI_PLATFORM_HAS_PMP * SBI_PLATFORM_HAS_SCOUNTEREN * SBI_PLATFORM_HAS_MCOUNTEREN In addition, define the macro SBI_PLATFORM_DEFAULT_FEATURES as the set of features that are generally expected to be supported by a Linux capable platform. Operations touching the features controlled with these falgs are not executed if the platform does not set the corresponding feature flags. Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Diffstat (limited to 'include/sbi/sbi_hart.h')
-rw-r--r--include/sbi/sbi_hart.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sbi/sbi_hart.h b/include/sbi/sbi_hart.h
index c77ffd2..90161f0 100644
--- a/include/sbi/sbi_hart.h
+++ b/include/sbi/sbi_hart.h
@@ -16,7 +16,7 @@ struct sbi_scratch;
int sbi_hart_init(struct sbi_scratch *scratch, u32 hartid);
-void sbi_hart_pmp_dump(void);
+void sbi_hart_pmp_dump(struct sbi_scratch *scratch);
void __attribute__((noreturn)) sbi_hart_hang(void);