commit | 61f78542ec96b05eead8b8371a6eff261390d35c | [log] [tgz] |
---|---|---|
author | Yidi Lin <yidilin@chromium.org> | Thu Nov 17 08:38:30 2022 |
committer | Yidi Lin <yidilin@chromium.org> | Tue Nov 22 06:31:00 2022 |
tree | 6b795f6266b75bff3afebb255ddbf500c74f6b68 | |
parent | c209031dffbbd13ae7d8b9b9b9184ffcf040a14d [diff] |
plat-mediatek: set CFG_DRAM_SIZE according to CFG_CORE_ARM64_PA_BITS OP-TEE Core uses CFG_DRAM_SIZE to map whole DRAM regsion so it can resolve the physical addresses to the shared memory regions allocated by Linux kernel. Since the shared meomery is allocate and managed by Linux kernel, it is unlikely to allocat a memory region outside the physical memory address. It should be safe to configure CFG_DRAM_SIZE to a larger size than the physical DRAM size. Even non-secure world could send an invalid physical address, the CPU should raise an exception and fail when OP-TEE Core accesses to that address. Set CFG_DRAM_SIZE according to CFG_CORE_ARM64_PA_BITS regardless of the physical DRAM size on different SKU. Change-Id: I0b5b06cf498e9828b910cc0d934e1e839caa850e
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