[coreboot-gerrit] New patch to review for coreboot: soc/intel/quark: Add bootblock_c_entry
Lee Leahy (leroy.p.leahy@intel.com)
gerrit at coreboot.org
Thu Aug 4 23:13:58 CEST 2016
Lee Leahy (leroy.p.leahy at intel.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16064
-gerrit
commit 348d8bd88214c6f6d8ed88f37ee9e3892115e3b1
Author: Lee Leahy <leroy.p.leahy at intel.com>
Date: Tue Aug 2 17:35:22 2016 -0700
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 <leroy.p.leahy at intel.com>
---
src/soc/intel/quark/bootblock/bootblock.c | 5 +++++
src/soc/intel/quark/bootblock/esram_init.S | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/soc/intel/quark/bootblock/bootblock.c b/src/soc/intel/quark/bootblock/bootblock.c
index 959084d..3c90de9 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 f3852c4..d982cdd 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 */
More information about the coreboot-gerrit
mailing list