diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-04-23 11:52:30 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-04-27 13:57:27 +0530 |
commit | 1bb00ab3aeabde78579774eef8eadc7b7e765924 (patch) | |
tree | 119d29d80996c9db45105fa9f688ef8b1aef5265 /platform/template | |
parent | 9f1b72ce66d659e91013b358939e832fb27223f5 (diff) |
lib: No need to provide default PMP region using platform callbacks
The default (usually last) PMP region provides S-mode access to
complete memory range not covered by other PMP regions.
Currently, the default PMP region is described as platform specific
PMP region which is not appropriate because all platforms need it
and default PMP region should be part of generic library.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'platform/template')
-rw-r--r-- | platform/template/platform.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/platform/template/platform.c b/platform/template/platform.c index d09b8bd..ef32941 100644 --- a/platform/template/platform.c +++ b/platform/template/platform.c @@ -34,24 +34,6 @@ static int platform_final_init(bool cold_boot) } /* - * Get number of PMP regions for given HART. - */ -static u32 platform_pmp_region_count(u32 hartid) -{ - return 0; -} - -/* - * Get PMP regions details (namely: protection, base address, and size) for - * a given HART. - */ -static int platform_pmp_region_info(u32 hartid, u32 index, ulong *prot, - ulong *addr, ulong *log2size) -{ - return 0; -} - -/* * Initialize the platform console. */ static int platform_console_init(void) @@ -201,8 +183,6 @@ static int platform_system_shutdown(u32 type) const struct sbi_platform_operations platform_ops = { .early_init = platform_early_init, .final_init = platform_final_init, - .pmp_region_count = platform_pmp_region_count, - .pmp_region_info = platform_pmp_region_info, .console_putc = platform_console_putc, .console_getc = platform_console_getc, .console_init = platform_console_init, |