mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: vendorcode/amd/pi/Lib: Fix reporting fatal error
Instead of writing the first word of 6 "post code structs" where only one exists (leading to 0xDEAD and 5 garbage words), write the correct set. BUG=None BRANCH=None TEST=None Change-Id: Ic0aefaf938f146b2461b99182db421a73743931c Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Found-by: Coverity Scan #1361054, #1361055, #1361056 Reviewed-on: https://review.coreboot.org/16058 Tested-by: build bot (Jenkins) Reviewed-by: Kysti Mlkki <kyosti.malkki@gmail.com> Reviewed-on: https://chromium-review.googlesource.com/368781 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
27d704e2d3
commit
d492e3ff93
1 changed files with 1 additions and 1 deletions
|
@ -1408,7 +1408,7 @@ IdsErrorStop (
|
|||
|
||||
while(1) {
|
||||
offset %= sizeof(struct POST) / 2;
|
||||
WriteIo32(80, *((UINT32*)(&post+offset)));
|
||||
WriteIo16(80, *((UINT16 *)&post)+offset);
|
||||
++offset;
|
||||
for (j=0; j<250; ++j) {
|
||||
ReadIo8(80);
|
||||
|
|
Loading…
Add table
Reference in a new issue