mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 23:41:23 +01:00
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>
This commit is contained in:
@@ -33,24 +33,6 @@ static int platform_final_init(bool cold_boot)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
@@ -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,
|
||||
|
Reference in New Issue
Block a user