|
@@ -36,6 +36,11 @@ static inline uint32_t optee_image_get_entry_point(const image_header_t *hdr)
|
|
|
return optee_hdr->init_load_addr_lo;
|
|
|
}
|
|
|
|
|
|
+static inline uint32_t optee_image_get_load_addr(const image_header_t *hdr)
|
|
|
+{
|
|
|
+ return optee_image_get_entry_point(hdr) - sizeof(struct optee_header);
|
|
|
+}
|
|
|
+
|
|
|
#if defined(CONFIG_OPTEE)
|
|
|
int optee_verify_image(struct optee_header *hdr, unsigned long tzdram_start,
|
|
|
unsigned long tzdram_len, unsigned long image_len);
|