From 9e4f956b73d40866a58eeea9f258d4697b2686c4 Mon Sep 17 00:00:00 2001 From: crgeddes Date: Wed, 26 Apr 2017 14:57:34 -0500 Subject: Expand hostboot progress indicator in core scratch 3 reg Previously this register only had 2 values. "running" in ascii and 0 This commit adds 3 more possible states. Now 0 represents that HB passed off control to the hypervisor. "shutdown" represents that HB TI'ed. "bootload" says we are in the bootloader. "starthbb" means the bootloader has started the base image. "running" means hostboot is up and running. Change-Id: I11e7ef3dbb559a221343070b2c1b15f67853710b RTC: 171742 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39730 Tested-by: Jenkins Server Reviewed-by: Martin Gloff Reviewed-by: Richard J. Knight Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell --- src/kernel/misc.C | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src/kernel/misc.C') diff --git a/src/kernel/misc.C b/src/kernel/misc.C index 2a4889b48..9c7ec7883 100644 --- a/src/kernel/misc.C +++ b/src/kernel/misc.C @@ -236,10 +236,28 @@ namespace KernelMisc updateScratchReg(MMIO_SCRATCH_HOSTBOOT_ACTIVE, *reinterpret_cast(hostboot_string)); } - else + else if(i_status == HB_STARTED_PAYLOAD) { updateScratchReg(MMIO_SCRATCH_HOSTBOOT_ACTIVE,0); } + else if(i_status == HB_BOOTLOADER) + { + const char * hostboot_string = "bootload"; + updateScratchReg(MMIO_SCRATCH_HOSTBOOT_ACTIVE, + *reinterpret_cast(hostboot_string)); + } + else if(i_status == HB_START_BASE_IMAGE) + { + const char * hostboot_string = "starthbb"; + updateScratchReg(MMIO_SCRATCH_HOSTBOOT_ACTIVE, + *reinterpret_cast(hostboot_string)); + } + else if(i_status == HB_SHUTDOWN) + { + const char * hostboot_string = "shutdown"; + updateScratchReg(MMIO_SCRATCH_HOSTBOOT_ACTIVE, + *reinterpret_cast(hostboot_string)); + } } void WinkleCore::masterPreWork() -- cgit v1.2.3