UPSTREAM: soc/intel/quark: Add bootblock_c_entry

Add the bootblock_c_entry routine to make it more explicit where the
code transitions from assembler to C.

TEST=Build and run on Galileo Gen2

BUG=None
BRANCH=None

Change-Id: I8c1f397fcdfee1c244ceaac3794881d4d7fb2182
Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
Reviewed-on: https://review.coreboot.org/16064
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://chromium-review.googlesource.com/368406
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Lee Leahy 2016-08-02 17:35:22 -07:00 committed by chrome-bot
parent a13af7204c
commit 853295a7f1
2 changed files with 6 additions and 1 deletions

View file

@ -75,6 +75,11 @@ static const struct reg_script mtrr_init[] = {
REG_SCRIPT_END
};
void asmlinkage bootblock_c_entry(uint64_t base_timestamp)
{
bootblock_main_with_timestamp(base_timestamp);
}
void bootblock_soc_early_init(void)
{
/* Initialize the MTRRs */

View file

@ -534,6 +534,6 @@ before_carstage:
push %ebp
/* We can call into C functions now */
call bootblock_main_with_timestamp
call bootblock_c_entry
/* Never reached */