mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 17:52:07 +02:00
remoteproc: elf_loader: Introduce rproc_elf_get_boot_addr() api
Introduce rproc_elf_get_boot_addr() that returns the entry point of the elf file. This api auto detects the 64/32 bit elf file and returns the boot addr accordingly. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
This commit is contained in:
@@ -174,6 +174,8 @@ static int dm_test_remoteproc_elf(struct unit_test_state *uts)
|
||||
/* Load firmware in loaded_firmware, and verify it */
|
||||
ut_assertok(rproc_elf32_load_image(dev, (ulong)valid_elf32, size));
|
||||
ut_assertok(memcmp(loaded_firmware, valid_elf32, loaded_firmware_size));
|
||||
ut_asserteq(rproc_elf_get_boot_addr(dev, (unsigned long)valid_elf32),
|
||||
0x08000000);
|
||||
unmap_physmem(loaded_firmware, MAP_NOCACHE);
|
||||
|
||||
/* Invalid ELF Magic */
|
||||
|
Reference in New Issue
Block a user