Skip to content

Commit

Permalink
core: mmu: fix nsec ddr discovery regarding MEM_AREA_RAM_NSEC
Browse files Browse the repository at this point in the history
Memory registered as MEM_AREA_RAM_NSEC can be part of the non-secure
shared memory. This change fixes core_mmu_set_discovered_nsec_ddr()
to not check such memory area do not overlap with non-secure RAM.
This is no issue physical pages from MEM_AREA_RAM_NSEC memory are also
handled and mapped as dynamic non-secure memory by OP-TEE.

Reviewed-by: Jens Wiklander <[email protected]>
Signed-off-by: Lionel Debieve <[email protected]>
Signed-off-by: Etienne Carriere <[email protected]>
  • Loading branch information
etienne-lms authored and jforissier committed Nov 22, 2023
1 parent ffeb299 commit cbaf4c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/mm/core_mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ void core_mmu_set_discovered_nsec_ddr(struct core_mmu_phys_mem *start,
break;
case MEM_AREA_EXT_DT:
case MEM_AREA_MANIFEST_DT:
case MEM_AREA_RAM_NSEC:
case MEM_AREA_RES_VASPACE:
case MEM_AREA_SHM_VASPACE:
case MEM_AREA_TS_VASPACE:
Expand Down

0 comments on commit cbaf4c8

Please sign in to comment.