Skip to content
Snippets Groups Projects
Commit a1e4bc65 authored by Harinarayan Bhatta's avatar Harinarayan Bhatta Committed by Tom Rini
Browse files

arm: mach-omap2: Relax checks on OP-TEE location to allow pageable image


When the OP-TEE image is built for secure paging the load address may be
in SRAM, remove checks that prevent this.

Signed-off-by: default avatarHarinarayan Bhatta <harinarayan@ti.com>
Signed-off-by: default avatarAndrew F. Davis <afd@ti.com>
Reviewed-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
parent 725ffdb5
No related branches found
No related tags found
No related merge requests found
...@@ -305,12 +305,8 @@ int secure_tee_install(u32 addr) ...@@ -305,12 +305,8 @@ int secure_tee_install(u32 addr)
if ((hdr->magic != OPTEE_MAGIC) || if ((hdr->magic != OPTEE_MAGIC) ||
(hdr->version != OPTEE_VERSION) || (hdr->version != OPTEE_VERSION) ||
(hdr->init_load_addr_hi != 0) || (tee_file_size > size)) {
(hdr->init_load_addr_lo < (sec_mem_start + sizeof(struct optee_header))) || printf("Error in TEE header. Check firewall and TEE sizes\n");
(tee_file_size > size) ||
((hdr->init_load_addr_lo + tee_file_size - 1) >
(sec_mem_start + size - 1))) {
printf("Error in TEE header. Check load address and sizes\n");
unmap_sysmem(hdr); unmap_sysmem(hdr);
return CMD_RET_FAILURE; return CMD_RET_FAILURE;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment