summaryrefslogtreecommitdiffstats
path: root/src/boot
diff options
context:
space:
mode:
authorSachin Gupta <sgupta2m@in.ibm.com>2017-04-05 08:42:02 -0500
committerAMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>2017-04-07 04:49:07 -0400
commitd8c777925f72e8d4e11aa24b3aab99a45b728eca (patch)
tree12a0c19527fd4490ff14ffa3b266f25c59abe18e /src/boot
parent1a0985be677261f93d9acf925cdf5992ba301525 (diff)
downloadtalos-sbe-d8c777925f72e8d4e11aa24b3aab99a45b728eca.tar.gz
talos-sbe-d8c777925f72e8d4e11aa24b3aab99a45b728eca.zip
Support to show boot progress using message register
Change-Id: I891c8906f2445f336c4a4eb3765b676b3bf06f8e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38870 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Santosh S. Puranik <santosh.puranik@in.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Reviewed-by: Shakeeb A. Pasha B K <shakeebbk@in.ibm.com> Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/loader_l1.S6
-rw-r--r--src/boot/loader_l2.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/src/boot/loader_l1.S b/src/boot/loader_l1.S
index eb35478f..92259e3c 100644
--- a/src/boot/loader_l1.S
+++ b/src/boot/loader_l1.S
@@ -51,6 +51,12 @@ __system_reset:
__l1Loader:
+ # Update 50009 ( sbe status register) to show sbe in seeprom loader
+ _liw %r5, 0x50009
+ _liw %r0, SBE_CODE_SEEPROM_START_MSG
+ li r1, 0x00
+ stvd d0, 0(r5)
+
bl _pibmemRepair
_liw %r3, SBE_LOADER_BASE_SECTION # Base Loader Section Location
_liw %r4, SBE_LOADER_BASE_ORIGIN # dest
diff --git a/src/boot/loader_l2.c b/src/boot/loader_l2.c
index ec497c68..003a2af6 100644
--- a/src/boot/loader_l2.c
+++ b/src/boot/loader_l2.c
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER sbe Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2015,2016 */
+/* Contributors Listed Below - COPYRIGHT 2015,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -43,6 +43,8 @@ int32_t loadSection( P9XipSection * i_section, uint64_t *i_destAddr )
int32_t l2_loader()
{
int32_t rc = 0;
+ uint64_t loadValue = (uint64_t)(SBE_CODE_PIBMEM_START_MSG)<<32;
+ PPE_STVD(0x50009, loadValue);
P9XipHeader *hdr = getXipHdr();
uint64_t *pibMemAddr = (uint64_t *)g_pibMemAddr;
OpenPOWER on IntegriCloud