summaryrefslogtreecommitdiff
path: root/src/vendorcode
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2014-01-30 15:48:29 -0600
committerAaron Durbin <adurbin@google.com>2014-02-15 18:03:15 +0100
commite9aaa71fb1e05c4432d768d87071ef842c536cb4 (patch)
tree27e57a861c1bb5b0282326e3c1d83fccee5df6a7 /src/vendorcode
parentefc5841ab404aa615306a233dcbcda225b9380b5 (diff)
downloadcoreboot-e9aaa71fb1e05c4432d768d87071ef842c536cb4.tar.xz
x86: provide stage_exit() like arm
The arm architectures have a stage_exit() function which takes a void * pointer as an entry point. Provide the same API for x86. This can make the booting paths less architecture-specific. Change-Id: I4ecfbf32f38f2e3817381b63e1f97e92654c5f97 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/5086 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/vendorcode')
-rw-r--r--src/vendorcode/google/chromeos/vboot_loader.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/vendorcode/google/chromeos/vboot_loader.c b/src/vendorcode/google/chromeos/vboot_loader.c
index badff2794f..cc7c25d873 100644
--- a/src/vendorcode/google/chromeos/vboot_loader.c
+++ b/src/vendorcode/google/chromeos/vboot_loader.c
@@ -17,6 +17,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <arch/stages.h>
#include <stdint.h>
#include <stddef.h>
#include <cbfs.h>
@@ -180,11 +181,7 @@ static void vboot_load_ramstage(struct vboot_handoff *vboot_handoff,
timestamp_add_now(TS_END_COPYRAM);
- __asm__ volatile (
- "movl $0, %%ebp\n"
- "jmp *%%edi\n"
- :: "D"(rmod_load.entry)
- );
+ stage_exit(rmod_load.entry);
}
void vboot_verify_firmware(struct romstage_handoff *handoff)