vboot: Use stage_exit() on ARM
Long term we should unify ARM and x86 handling of situations like this. Signed-off-by: Stefan Reinauer <reinauer@google.com> BRANCH=none TEST=needs further changes BUG=none Change-Id: Iac598234262264117553c8ce915ddcb7fcc6509e Reviewed-on: https://chromium-review.googlesource.com/167402 Reviewed-by: David Hendricks <dhendrix@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: Stefan Reinauer <reinauer@google.com> Commit-Queue: Stefan Reinauer <reinauer@google.com>
This commit is contained in:
parent
ed23fa71e9
commit
a0b53f0ff5
1 changed files with 5 additions and 0 deletions
|
|
@ -30,6 +30,7 @@
|
|||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <timestamp.h>
|
||||
#include <arch/stages.h>
|
||||
#include "chromeos.h"
|
||||
#include "fmap.h"
|
||||
#include "vboot_context.h"
|
||||
|
|
@ -237,11 +238,15 @@ static void vboot_load_ramstage(struct vboot_handoff *vboot_handoff,
|
|||
|
||||
timestamp_add_now(TS_END_COPYRAM);
|
||||
|
||||
#if CONFIG_ARCH_X86
|
||||
__asm__ volatile (
|
||||
"movl $0, %%ebp\n"
|
||||
"jmp *%%edi\n"
|
||||
:: "D"(entry_point)
|
||||
);
|
||||
#elif CONFIG_ARCH_ARMV7
|
||||
stage_exit(entry_point);
|
||||
#endif
|
||||
}
|
||||
|
||||
void vboot_verify_firmware(struct romstage_handoff *handoff)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue