diff options
author | Aaron Durbin <adurbin@chromium.org> | 2014-02-24 22:27:39 -0600 |
---|---|---|
committer | Aaron Durbin <adurbin@google.com> | 2014-03-03 19:50:32 +0100 |
commit | 7d1996cc4af563f614455db23fe91a6feccd2560 (patch) | |
tree | d8bbaeb40898a3dbf197cbca991acf9962b7c7f9 /src/arch/armv7 | |
parent | e58a24b1b598383eab918dac03be4d7122bf0ac5 (diff) | |
download | coreboot-7d1996cc4af563f614455db23fe91a6feccd2560.tar.xz |
coreboot: introduce arch_payload_run()
The selfboot() function relied on global variables
within the selfboot.c compilation unit. Now that the
bounce buffer is a part of struct payload use a new
architecture-specific arch_payload_run() function
for jumping to the payload. selfboot() can then be
removed.
Change-Id: Icec74942e94599542148561b3311ce5096ac5ea5
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/5300
Tested-by: build bot (Jenkins)
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/arch/armv7')
-rw-r--r-- | src/arch/armv7/boot.c | 7 | ||||
-rw-r--r-- | src/arch/armv7/include/arch/stages.h | 1 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/armv7/boot.c b/src/arch/armv7/boot.c index 677480230b..d872a79151 100644 --- a/src/arch/armv7/boot.c +++ b/src/arch/armv7/boot.c @@ -19,9 +19,10 @@ #include <console/console.h> #include <arch/stages.h> +#include <payload_loader.h> -void jmp_to_elf_entry(void *entry, unsigned long buffer, unsigned long size) +void arch_payload_run(const struct payload *payload) { - printk(BIOS_SPEW, "entry = %p\n", entry); - stage_exit(entry); + printk(BIOS_SPEW, "entry = %p\n", payload->entry); + stage_exit(payload->entry); } diff --git a/src/arch/armv7/include/arch/stages.h b/src/arch/armv7/include/arch/stages.h index 3fd54b9bb4..671c02b3dd 100644 --- a/src/arch/armv7/include/arch/stages.h +++ b/src/arch/armv7/include/arch/stages.h @@ -24,6 +24,5 @@ extern void main(void); void stage_entry(void) __attribute__((section(".text.stage_entry.armv7"))); void stage_exit(void *); -void jmp_to_elf_entry(void *entry, unsigned long buffer, unsigned long size); #endif |