void __naked __noreturn barebox_arm_entry(unsigned long membase, unsigned long memsize, void *boarddata) { arm_setup_stack(arm_mem_stack(membase, membase + memsize) + STACK_SIZE - 16); arm_early_mmu_cache_invalidate(); if (IS_ENABLED(CONFIG_PBL_MULTI_IMAGES)) barebox_multi_pbl_start(membase, memsize, boarddata); else if (IS_ENABLED(CONFIG_PBL_SINGLE_IMAGE)) barebox_single_pbl_start(membase, memsize, boarddata); else barebox_non_pbl_start(membase, memsize, boarddata); }
/* * First function in the uncompressed image. We get here from * the pbl. The stack already has been set up by the pbl. */ void __naked __section(.text_entry) start(unsigned long membase, unsigned long memsize, void *boarddata) { barebox_non_pbl_start(membase, memsize, boarddata); }