diff options
author | Dean Sanner <dsanner@us.ibm.com> | 2016-05-12 14:39:26 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-06-24 10:58:26 -0400 |
commit | 42b2be3b88063b420ed1228529497af73849c4fa (patch) | |
tree | cbc01208bf290337aac86b22d253633ddf804c2b /src/build/debug/Hostboot/Istep.pm | |
parent | aa513a3a39202bcbc5294cd1ef6618ecbe151bf8 (diff) | |
download | blackbird-hostboot-42b2be3b88063b420ed1228529497af73849c4fa.tar.gz blackbird-hostboot-42b2be3b88063b420ed1228529497af73849c4fa.zip |
Make HB and HW Mailbox Scratch reg numbering consistent
Change-Id: I74dde172f66e910f40f0fd4ffe981e0932c9ae4e
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24564
Tested-by: Jenkins Server
Tested-by: FSP CI Jenkins
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/build/debug/Hostboot/Istep.pm')
-rwxr-xr-x | src/build/debug/Hostboot/Istep.pm | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/build/debug/Hostboot/Istep.pm b/src/build/debug/Hostboot/Istep.pm index 8d1896932..f33998000 100755 --- a/src/build/debug/Hostboot/Istep.pm +++ b/src/build/debug/Hostboot/Istep.pm @@ -79,10 +79,10 @@ use constant MAX_ISTEPS => 256; use constant MAX_SUBSTEPS => 25; ## Mailbox Scratchpad regs -use constant MBOX_SCRATCH0 => 0x00050038; ## contTrace -use constant MBOX_SCRATCH1 => 0x00050039; ## sts LO -use constant MBOX_SCRATCH2 => 0x0005003a; ## sts HI -use constant MBOX_SCRATCH3 => 0x0005003b; ## cmd reg +use constant MBOX_SCRATCH1 => 0x00050038; ## conTrace addr +use constant MBOX_SCRATCH2 => 0x00050039; ## conTrace len +use constant MBOX_SCRATCH3 => 0x0005003a; ## Not used +use constant MBOX_SCRATCH4 => 0x0005003b; ## cmd reg ## extra parm for ::executeInstrCycles use constant NOSHOW => 1; @@ -599,7 +599,7 @@ sub sendCommand( $ ) ## Hostboot expects a key to be set to trigger the command ## when doing via scom we simply need to read, modify write ## the reg - $read_bindata = ::readScom( MBOX_SCRATCH3, 8 ); + $read_bindata = ::readScom( MBOX_SCRATCH4, 8 ); my $key = (($read_bindata) & 0x1F00000000000000); ## convert to binary before sending to writescom @@ -610,13 +610,13 @@ sub sendCommand( $ ) $bindata = (($bindata) | ($key)); ## now write the data - ::writeScom( MBOX_SCRATCH3, 8, $bindata ); + ::writeScom( MBOX_SCRATCH4, 8, $bindata ); if ( $opt_debug ) { ## sanity check ::executeInstrCycles( 10, NOSHOW ); - my $readback = ::readScom( MBOX_SCRATCH3, 8 ); + my $readback = ::readScom( MBOX_SCRATCH4, 8 ); ::userDisplay "=== sendCommand readback: $readback\n"; } @@ -640,7 +640,7 @@ sub getStatus() my $statusHi = ""; my $statusLo = ""; - $statusHi = ::readScom( MBOX_SCRATCH3, 8 ); + $statusHi = ::readScom( MBOX_SCRATCH4, 8 ); if ( $opt_debug ) { ::userDisplay "=== statusHi: $statusHi \n"; } $statusLo = 0; |