Skip to content

Commit

Permalink
[fix] core: mm: replace MEM_AREA_TA_RAM
Browse files Browse the repository at this point in the history
The TEE ram at the lowest physical address must be mapped too.

Signed-off-by: Jens Wiklander <[email protected]>
  • Loading branch information
jenswi-linaro committed Sep 15, 2024
1 parent 5d2e8d1 commit f7c663b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/mm/core_mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,8 @@ static void collect_mem_ranges(struct memory_map *mem_map)
* not be mapped by MEM_AREA_SEC_RAM_OVERALL, but all the
* read/write should.
*/
ADD_PHYS_MEM(MEM_AREA_TEE_RAM, ram_start,
VCORE_UNPG_RX_PA - ram_start);
ADD_PHYS_MEM(MEM_AREA_SEC_RAM_OVERALL, ram_start,
VCORE_UNPG_RX_PA - ram_start);
ADD_PHYS_MEM(MEM_AREA_TEE_RAM_RX, VCORE_UNPG_RX_PA,
Expand Down

0 comments on commit f7c663b

Please sign in to comment.