summaryrefslogtreecommitdiff
path: root/src/lib/selfboot.c
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2014-02-24 21:24:28 -0600
committerAaron Durbin <adurbin@google.com>2014-03-03 19:49:40 +0100
commit1322d7f9d58f355f469ab7b993f7da5b6117edb6 (patch)
tree04cf717efc134f054237cfc438feccdaa1aa325a /src/lib/selfboot.c
parentbdf913ab010c99db8e64845f5b5837c9008609dc (diff)
downloadcoreboot-1322d7f9d58f355f469ab7b993f7da5b6117edb6.tar.xz
coreboot: move common code to payload_run() from selfboot()
The selfboot() routine was perfoming most of the common teardown and stack checking infrastructure. Move that code into payload_run() to prepare removal of the selfboot() function. Change-Id: I29f2a5cfcc692f7a0fe2656cb1cda18158c49c6e Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/5297 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Diffstat (limited to 'src/lib/selfboot.c')
-rw-r--r--src/lib/selfboot.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/lib/selfboot.c b/src/lib/selfboot.c
index c0986d11e8..6f200fa868 100644
--- a/src/lib/selfboot.c
+++ b/src/lib/selfboot.c
@@ -22,16 +22,12 @@
#include <arch/stages.h>
#include <console/console.h>
#include <cpu/cpu.h>
-#include <fallback.h>
#include <boot/coreboot_tables.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <cbfs.h>
#include <lib.h>
-#if CONFIG_COLLECT_TIMESTAMPS
-#include <timestamp.h>
-#endif
#include <payload_loader.h>
/* Maximum physical address we can use for the coreboot bounce buffer. */
@@ -527,21 +523,6 @@ out:
void selfboot(void *entry)
{
- /* Reset to booting from this image as late as possible */
- boot_successful();
-
- printk(BIOS_DEBUG, "Jumping to boot code at %p\n", entry);
- post_code(POST_ENTER_ELF_BOOT);
-
-#if CONFIG_COLLECT_TIMESTAMPS
- timestamp_add_now(TS_SELFBOOT_JUMP);
-#endif
-
- /* Before we go off to run the payload, see if
- * we stayed within our bounds.
- */
- checkstack(_estack, 0);
-
/* Jump to kernel */
jmp_to_elf_entry(entry, bounce_buffer, bounce_size);
}