diff options
| author | Patrick Williams <iawillia@us.ibm.com> | 2012-08-30 12:05:09 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-09-04 17:04:05 -0500 |
| commit | d94559078015ade8301370c54ccd8773f666fec1 (patch) | |
| tree | b7c6c38671118abf1ac87b5b077850b27c5e1447 /src/usr/hwpf | |
| parent | 2e8754b467914eb554a886317b88a3a654e0f58d (diff) | |
| download | blackbird-hostboot-d94559078015ade8301370c54ccd8773f666fec1.tar.gz blackbird-hostboot-d94559078015ade8301370c54ccd8773f666fec1.zip | |
Write scratch register in start_payload / shutdown.
Change-Id: I47a8ad7914c6833c476a7944be5d352f45467f3a
RTC: 47725
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1646
Tested-by: Jenkins Server
Reviewed-by: Mark W. Wenning <wenning@us.ibm.com>
Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf')
| -rw-r--r-- | src/usr/hwpf/hwp/start_payload/start_payload.C | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/usr/hwpf/hwp/start_payload/start_payload.C b/src/usr/hwpf/hwp/start_payload/start_payload.C index 50de5afcf..772c84c53 100644 --- a/src/usr/hwpf/hwp/start_payload/start_payload.C +++ b/src/usr/hwpf/hwp/start_payload/start_payload.C @@ -46,6 +46,7 @@ #include <usr/cxxtest/TestSuite.H> #include <hwpf/istepreasoncodes.H> #include <sys/time.h> +#include <sys/mmio.h> #include <mbox/mbox_queues.H> #include <mbox/mboxif.H> @@ -163,6 +164,11 @@ errlHndl_t callShutdown ( void ) do { + // Set scratch register to indicate Hostboot is [still] active. + const char * hostboot_string = "hostboot"; + mmio_scratch_write(MMIO_SCRATCH_HOSTBOOT_ACTIVE, + *reinterpret_cast<const uint64_t*>(hostboot_string)); + // Get Target Service, and the system target. TargetService& tS = targetService(); TARGETING::Target* sys = NULL; |

