diff options
| author | Himanshu Chauhan <[email protected]> | 2023-01-09 05:20:37 +0000 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-01-09 18:04:14 +0530 |
| commit | 22dbdb3d60c64975d7e5704a6bd64f7b73bee157 (patch) | |
| tree | 1f17904ff20439d17ba309ec197c1fa781f60412 | |
| parent | aace1e145dbd987e6bd5a8b4583faafde7d33c43 (diff) | |
lib: sbi: Add permissions for the firmware start till end
Change the zero flag to M-mode R/W/X flag for the firmware
region.
Signed-off-by: Himanshu Chauhan <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Tested-by: Anup Patel <[email protected]>
| -rw-r--r-- | lib/sbi/sbi_domain.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sbi/sbi_domain.c b/lib/sbi/sbi_domain.c index 97eec25c..b08d6e35 100644 --- a/lib/sbi/sbi_domain.c +++ b/lib/sbi/sbi_domain.c @@ -629,7 +629,8 @@ int sbi_domain_init(struct sbi_scratch *scratch, u32 cold_hartid) const struct sbi_platform *plat = sbi_platform_ptr(scratch); /* Root domain firmware memory region */ - sbi_domain_memregion_init(scratch->fw_start, scratch->fw_size, 0, + sbi_domain_memregion_init(scratch->fw_start, scratch->fw_size, + SBI_DOMAIN_MEMREGION_M_RWX, &root_fw_region); domain_memregion_initfw(&root_memregs[root_memregs_count++]); |
