commit | da76876023b21051c8589479fa828787a0dff620 | [log] [tgz] |
---|---|---|
author | Fangsuo Wu <fangsuowu@asrmicro.com> | Mon Jan 20 17:26:06 2020 +0800 |
committer | Jérôme Forissier <jerome@forissier.org> | Fri Jan 24 09:53:41 2020 +0100 |
tree | 5ad098e456f7e35ee93f0dfa30d0a4e2ece571c4 | |
parent | 6e934fb4866c578ea8f020e207aaa5b7bf196cf6 [diff] |
core: introduce a new memory type for external dtb image When CFG_DT=y, the external dtb image is mapped as IO_NSEC memory type in init_external_dt function, which may conflicts with dynamic shared memory check. Below is the panic log with qemu boot: E/TC:0 0 check_phys_mem_is_outside:333 Non-sec mem (0x40000000:0x3fe00000) overlaps map (type 13 0x40000000:0x100000) E/TC:0 0 Panic at core/arch/arm/mm/core_mmu.c:334 <check_phys_mem_is_outside> E/TC:0 0 TEE load address @ 0x1bd0f000 This patch introduces a new memory type MEM_AREA_EXT_DT which is used to map external dtb image. This memory type will be skipped over in core_mmu_set_discovered_nsec_ddr() in order to avoid the above panic. Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Fangsuo Wu <fangsuowu@asrmicro.com>
This git contains source code for the secure side implementation of OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io.
// OP-TEE core maintainers