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>
This commit is contained in:
Aaron Durbin
2014-02-24 22:27:39 -06:00
committed by Aaron Durbin
parent e58a24b1b5
commit 7d1996cc4a
7 changed files with 20 additions and 20 deletions

View File

@ -19,7 +19,6 @@
*/
#include <arch/byteorder.h>
#include <arch/stages.h>
#include <console/console.h>
#include <cpu/cpu.h>
#include <boot/coreboot_tables.h>
@ -526,9 +525,3 @@ void *selfload(struct lb_memory *mem, struct payload *payload)
out:
return NULL;
}
void selfboot(void *entry)
{
/* Jump to kernel */
jmp_to_elf_entry(entry, bounce_buffer, bounce_size);
}