Skip to content

Commit

Permalink
riscv: plat-virt: switch to dynamic shared memory
Browse files Browse the repository at this point in the history
Enable dynamic shared memory for QEMU virt machine.

Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
Reviewed-by: Alvin Chang <alvinga@andestech.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
  • Loading branch information
lyctw authored and jforissier committed Jun 11, 2024
1 parent 139faa8 commit 09bbd26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions core/arch/riscv/kernel/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ void boot_init_primary_late(unsigned long fdt,
unsigned long tos_fw_config __unused)
{
init_external_dt(fdt, CFG_DTB_MAX_SIZE);
discover_nsec_memory();
update_external_dt();

IMSG("OP-TEE version: %s", core_v_str);
Expand Down
6 changes: 2 additions & 4 deletions core/arch/riscv/plat-virt/conf.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ $(call force,CFG_RV64_core,y)

$(call force,CFG_CORE_LARGE_PHYS_ADDR,y)
$(call force,CFG_TEE_CORE_DEBUG,n)
$(call force,CFG_CORE_DYN_SHM,n)
$(call force,CFG_CORE_RESERVED_SHM,n)
$(call force,CFG_CORE_DYN_SHM,y)

CFG_DT ?= y

Expand Down Expand Up @@ -41,7 +42,4 @@ supported-ta-targets = ta_rv64
# Memory layout flags
CFG_TDDRAM_START ?= 0x8e000000
CFG_TDDRAM_SIZE ?= 0x00f00000
$(call force,CFG_CORE_RESERVED_SHM,y)
CFG_SHMEM_START ?= 0x88f00000
CFG_SHMEM_SIZE ?= 0x00200000
CFG_TEE_RAM_VA_SIZE ?= 0x00200000

0 comments on commit 09bbd26

Please sign in to comment.