[coreboot] New patch to review for coreboot: 3644ef8 armv7: jump to ELF image using stage_exit()

David Hendricks (dhendrix@chromium.org) gerrit at coreboot.org
Tue Feb 12 03:29:20 CET 2013


David Hendricks (dhendrix at chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/2363

-gerrit

commit 3644ef8fff99a13f7cc290fcb60b237084957cde
Author: David Hendricks <dhendrix at chromium.org>
Date:   Mon Feb 11 18:22:44 2013 -0800

    armv7: jump to ELF image using stage_exit()
    
    This is just to get us to the payload.
    
    TODO: Do we want to implement any of the stuff from the x86 version,
    such as copying coreboot to a new location?
    
    Change-Id: Ia0544f111d7a1189ebd92d0ba3e11448eabd6252
    Signed-off-by: David Hendricks <dhendrix at chromium.org>
---
 src/arch/armv7/boot/boot.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/arch/armv7/boot/boot.c b/src/arch/armv7/boot/boot.c
index 722fca5..ab531be 100644
--- a/src/arch/armv7/boot/boot.c
+++ b/src/arch/armv7/boot/boot.c
@@ -4,6 +4,7 @@
 #include <boot/elf_boot.h>
 #include <string.h>
 #include <cpu/x86/multiboot.h>
+#include <arch/stages.h>
 
 
 #ifndef CMD_LINE
@@ -92,8 +93,9 @@ void jmp_to_elf_entry(void *entry, unsigned long buffer, unsigned long size)
 	printk(BIOS_SPEW, "     elf_boot_notes = 0x%08lx\n", (unsigned long)&elf_boot_notes);
 	printk(BIOS_SPEW, "adjusted_boot_notes = 0x%08lx\n", adjusted_boot_notes);
 
-	/* FIXME(dhendrix): port code to jump to kernel here... */
+	stage_exit(entry);
 #if 0
+	/* FIXME: do we need any of this? */
 	/* Jump to kernel */
 	__asm__ __volatile__(
 		"	cld	\n\t"
@@ -185,5 +187,3 @@ void jmp_to_elf_entry(void *entry, unsigned long buffer, unsigned long size)
 		);
 #endif
 }
-
-



More information about the coreboot mailing list