From 3de7d4a9b2fddb798ce04ea217b7642ff3510ac3 Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Tue, 2 Aug 2016 17:35:22 -0700 Subject: 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 Change-Id: Ib5f580c30b58d3c82fedddf63c368e617d401515 Signed-off-by: Lee Leahy Reviewed-on: https://review.coreboot.org/16064 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/soc/intel/quark/bootblock/bootblock.c | 5 +++++ src/soc/intel/quark/bootblock/esram_init.S | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/soc/intel/quark/bootblock/bootblock.c b/src/soc/intel/quark/bootblock/bootblock.c index 959084d935..3c90de9636 100644 --- a/src/soc/intel/quark/bootblock/bootblock.c +++ b/src/soc/intel/quark/bootblock/bootblock.c @@ -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 */ diff --git a/src/soc/intel/quark/bootblock/esram_init.S b/src/soc/intel/quark/bootblock/esram_init.S index f3852c4800..d982cdd2f9 100644 --- a/src/soc/intel/quark/bootblock/esram_init.S +++ b/src/soc/intel/quark/bootblock/esram_init.S @@ -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 */ -- cgit v1.2.3