lib: Rename target_hart parameter to hartid for PMP platform callbacks

We rename target_hart parameter of PMP platform callbacks to
hartid for clarity because the parameter represents current
hartid.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
Anup Patel
2018-12-26 18:49:55 +05:30
committed by Anup Patel
parent 52ed1d1709
commit 45f874da6c
4 changed files with 13 additions and 13 deletions

View File

@@ -44,12 +44,12 @@ static int sifive_u_final_init(u32 hartid, bool cold_boot)
return 0;
}
static u32 sifive_u_pmp_region_count(u32 target_hart)
static u32 sifive_u_pmp_region_count(u32 hartid)
{
return 1;
}
static int sifive_u_pmp_region_info(u32 target_hart, u32 index,
static int sifive_u_pmp_region_info(u32 hartid, u32 index,
ulong *prot, ulong *addr, ulong *log2size)
{
int ret = 0;