diff options
| author | Van Lee <vanlee@us.ibm.com> | 2012-07-23 11:12:03 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-07-28 13:05:26 -0500 |
| commit | a734a78705f58ae45876a2c25e7e2c8e497d42a0 (patch) | |
| tree | 4d6d3b700180731200e66a71b66b1a4f57e46796 /src/build/vpo | |
| parent | b866f4173f605d8dcdf83b3239dd7fb9a5a8768b (diff) | |
| download | talos-hostboot-a734a78705f58ae45876a2c25e7e2c8e497d42a0.tar.gz talos-hostboot-a734a78705f58ae45876a2c25e7e2c8e497d42a0.zip | |
Avoid using seqNum 0 in hb-istep which may cause falsely istep completion
Change-Id: I5df0c989d8fd19a8c2276d5684a26bd7a6e57d6b
RTC: 45560
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1409
Tested-by: Jenkins Server
Reviewed-by: Mark W. Wenning <wenning@us.ibm.com>
Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/build/vpo')
| -rwxr-xr-x | src/build/vpo/hb-istep | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/build/vpo/hb-istep b/src/build/vpo/hb-istep index 81b7a22ba..852d259b3 100755 --- a/src/build/vpo/hb-istep +++ b/src/build/vpo/hb-istep @@ -132,7 +132,6 @@ for( my $i = 0; $i < MAX_ISTEPS; $i++) ## initialize the sequence number - 6 bit field, { 0 - 63 } my $g_SeqNum = int(rand(64)); - #============================================================================== # MAIN #============================================================================== @@ -474,6 +473,8 @@ sub bumpSeqNum() $g_SeqNum %= 64; + $g_SeqNum += ($g_SeqNum == 0) ? 1 : 0; + return $g_SeqNum; } |

