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
Loop++;\r
MmioWrite32(MCI_FIFO_REG, Buffer[Loop]);\r
Loop++;\r
- } else if ((Status & MCI_STATUS_CMD_TXFIFOEMPTY)) {\r
+ } else if (!(Status & MCI_STATUS_CMD_TXFIFOFULL)) {\r
MmioWrite32(MCI_FIFO_REG, Buffer[Loop]);\r
Loop++;\r
} else {\r