uintptr_tbl33_entry=CONFIG_SYS_TEXT_BASE; void*blob=spl_image->fdt_addr; uintptr_tplatform_param=(uintptr_t)blob; intnode; /* * Find the OP-TEE binary (in /fit-images) load address or * entry point (if different) and pass it as the BL3-2 entry ...
spl_image->entry_point = fw_data; spl_image->load_addr = fw_data; spl_image->os = IH_OS_U_BOOT; spl_image->name = "U-Boot"; debug("spl: payload image: %.*s load addr: 0x%lx size: %d\n", (int)sizeof(spl_image->name), spl_image->name, spl_image->load_addr, spl_...
可以看到,定义了一个void *函数指针,指向了从spl_image中解析出的entry_point,通过直接调用这个指针,就跳转到了u-boot中,这个entry_point是通过解析u-boot头部得到的,这个头部结构体是legacy_img_hdr,定义如下 #defineIH_NMLEN32/* Image Name Length */structlegacy_img_hdr{uint32_tih_magic;/* Image Heade...
u8 os; uintptr_t load_addr; uintptr_t entry_point; #if CONFIG_IS_ENABLED(LOAD_FIT) #if CONFIG_IS_ENABLED(LOAD_FIT) || CONFIG_IS_ENABLED(LOAD_FIT_FULL) void *fdt_addr; #endif u32 boot_device;0 comments on commit a9a8271 Please sign in to comment. Footer...