Revision: 14793
          http://sourceforge.net/p/edk2/code/14793
Author:   oliviermartin
Date:     2013-10-21 11:06:51 +0000 (Mon, 21 Oct 2013)
Log Message:
-----------
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 <[email protected]>

Modified Paths:
--------------
    trunk/edk2/ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c

Modified: trunk/edk2/ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c
===================================================================
--- trunk/edk2/ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c    2013-10-21 
10:29:56 UTC (rev 14792)
+++ trunk/edk2/ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c    2013-10-21 
11:06:51 UTC (rev 14793)
@@ -336,7 +336,7 @@
       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 {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to