mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-08-18 01:21:49 +01:00
lib: sbi: Fix typos related to hart protection
The hart protection is incorrectly mentioned as hart isolation at few places in sbi_init.c hence fix these typos. Signed-off-by: Anup Patel <anup.patel@oss.qualcomm.com> Reviewed-by: Rahul Pathak <rahul.pathak@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260727042504.1743250-2-anup.patel@oss.qualcomm.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
+3
-3
@@ -432,12 +432,12 @@ static void __noreturn init_coldboot(struct sbi_scratch *scratch, u32 hartid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Configure hart isolation at last because if SMEPMP is,
|
* Configure hart protection at last because if SMEPMP is
|
||||||
* detected, M-mode access to the S/U space will be rescinded.
|
* detected, M-mode access to the S/U space will be rescinded.
|
||||||
*/
|
*/
|
||||||
rc = sbi_hart_protection_configure(scratch);
|
rc = sbi_hart_protection_configure(scratch);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
sbi_printf("%s: hart isolation configure failed (error %d)\n",
|
sbi_printf("%s: hart protection configure failed (error %d)\n",
|
||||||
__func__, rc);
|
__func__, rc);
|
||||||
sbi_hart_hang();
|
sbi_hart_hang();
|
||||||
}
|
}
|
||||||
@@ -515,7 +515,7 @@ static void __noreturn init_warm_startup(struct sbi_scratch *scratch,
|
|||||||
sbi_hart_hang();
|
sbi_hart_hang();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Configure hart isolation at last because if SMEPMP is,
|
* Configure hart protection at last because if SMEPMP is
|
||||||
* detected, M-mode access to the S/U space will be rescinded.
|
* detected, M-mode access to the S/U space will be rescinded.
|
||||||
*/
|
*/
|
||||||
rc = sbi_hart_protection_configure(scratch);
|
rc = sbi_hart_protection_configure(scratch);
|
||||||
|
|||||||
Reference in New Issue
Block a user