mirror of https://github.com/acidanthera/audk.git
ArmPlatformPkg/PL180MciDxe: Fixed check for space in transmit FIFO
This patch prevents a buffer underrun error on the Versatile Express Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14793 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
ae26789a50
commit
4f8c9ae05d
|
@ -336,7 +336,7 @@ MciWriteBlockData (
|
|||
Loop++;
|
||||
MmioWrite32(MCI_FIFO_REG, Buffer[Loop]);
|
||||
Loop++;
|
||||
} else if ((Status & MCI_STATUS_CMD_TXFIFOEMPTY)) {
|
||||
} else if (!(Status & MCI_STATUS_CMD_TXFIFOFULL)) {
|
||||
MmioWrite32(MCI_FIFO_REG, Buffer[Loop]);
|
||||
Loop++;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue