From be7124ee1d5f42eee86485968374c312ef57d5a1 Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Mon, 2 Mar 2015 11:33:13 -0800 Subject: armv7: preserve bootblock invocation parameter Some platforms may pass as a parameter the maskrom or vendor startup code information when calling the bootblock. Make sure the bootblock startup code saves this parameter for use by coreboot. As we don't want to touch memory before caches are initialized, save the passed in parameter in r10 for the duration of cache initialization. Added warning comments to help enforcing that cache initialization code does not touch r10. BRANCH=storm BUG=chrome-os-partner:30623 TEST=with the rest of the patches applied see the QCA uber-sbl report in the coreboot console output. Change-Id: Ic6a09e8c3cf13ac4f2d12ee91c7ab41bc9aa95da Signed-off-by: Patrick Georgi Original-Commit-Id: e41584f769eb042604883275b0d0bdfbf5b0d358 Original-Change-Id: I517a79dc95040326f46f0b80ee4e74bdddde8bf4 Original-Signed-off-by: Vadim Bendebury Original-Reviewed-on: https://chromium-review.googlesource.com/255144 Original-Reviewed-by: Julius Werner Original-Commit-Queue: Vadim Bendebury Reviewed-on: http://review.coreboot.org/9842 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/soc/qualcomm/ipq806x/include/soc/usbl_if.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/soc') diff --git a/src/soc/qualcomm/ipq806x/include/soc/usbl_if.h b/src/soc/qualcomm/ipq806x/include/soc/usbl_if.h index eaa96ff430..3bbf023dfe 100644 --- a/src/soc/qualcomm/ipq806x/include/soc/usbl_if.h +++ b/src/soc/qualcomm/ipq806x/include/soc/usbl_if.h @@ -62,4 +62,6 @@ typedef struct { #define UBER_SBL_SHARED_INFO_START_MAGIC 0x5552504d // URPM #define UBER_SBL_SHARED_INFO_END_MAGIC 0x554b5254 // UKRT +extern uber_sbl_shared_info *maskrom_param; + #endif -- cgit v1.2.3