mirror of
https://github.com/Fishwaldo/opensbi.git
synced 2025-03-15 19:31:32 +00:00
lib: sbi/sbi_domain: cosmetic style fixes
Minor updates to the comments for language and style fixes. Signed-off-by: Bin Meng <bmeng@tinylab.org> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
parent
67b2a40892
commit
5a75f5309c
1 changed files with 2 additions and 2 deletions
|
@ -337,7 +337,7 @@ static int sanitize_domain(const struct sbi_platform *plat,
|
|||
/*
|
||||
* Check next mode
|
||||
*
|
||||
* We only allow next mode to be S-mode or U-mode.so that we can
|
||||
* We only allow next mode to be S-mode or U-mode, so that we can
|
||||
* protect M-mode context and enforce checks on memory accesses.
|
||||
*/
|
||||
if (dom->next_mode != PRV_S &&
|
||||
|
@ -347,7 +347,7 @@ static int sanitize_domain(const struct sbi_platform *plat,
|
|||
return SBI_EINVAL;
|
||||
}
|
||||
|
||||
/* Check next address and next mode*/
|
||||
/* Check next address and next mode */
|
||||
if (!sbi_domain_check_addr(dom, dom->next_addr, dom->next_mode,
|
||||
SBI_DOMAIN_EXECUTE)) {
|
||||
sbi_printf("%s: %s next booting stage address 0x%lx can't "
|
||||
|
|
Loading…
Add table
Reference in a new issue