Skip to content

Commit

Permalink
core: mmu: fix memory regions found from ff-a manifest
Browse files Browse the repository at this point in the history
Fix the 6th parameter of add_phys_mem() in collect_device_mem_ranges()
that has to be the size of memory region and not the end address of the
region.

Fixes: 72a6827 ("core: arm: SPMC obtain device memory info from DTB")
Signed-off-by: Sungbae Yoo <sungbaey@nvidia.com>
Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
  • Loading branch information
ysbnim authored and jforissier committed Apr 30, 2024
1 parent 9b6221a commit d20a1d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/mm/core_mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ static void collect_device_mem_ranges(struct tee_mmap_region *memory_map,
}

add_phys_mem(memory_map, num_elems, name, MEM_AREA_IO_SEC,
base, base + page_count * SMALL_PAGE_SIZE, last);
base, page_count * SMALL_PAGE_SIZE, last);
}
}

Expand Down

0 comments on commit d20a1d4

Please sign in to comment.