다음의 미러
https://github.com/riscv-software-src/opensbi.git
동기화됨 2026-09-20 23:31:43 +01:00
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 <hchauhan@ventanamicro.com> Reviewed-by: Anup Patel <anup@brainfault.org> Tested-by: Anup Patel <anup@brainfault.org>
이 커밋은 다음에 포함됨:
+2
-1
@@ -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++]);
|
||||
|
||||
|
||||
새 이슈에서 참조
사용자 차단