summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2012-08-03 17:38:17 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2012-08-03 17:38:17 +0000
commitcdd3f03236bd490edf6c6ea662ac8862a747e9b7 (patch)
tree2497ed9feba73a4b5fa5486cc621a3fcf19bee19
parent477be7c4cb4b8504dcd6817871ce1534069494e2 (diff)
downloadedk2-platforms-cdd3f03236bd490edf6c6ea662ac8862a747e9b7.tar.xz
ArmPlatformPkg/Drivers/PL011Uart: Fixed PL011UartWrite()
Forget to increment pointer. Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13591 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.c b/ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.c
index 1f33bd1ef0..f208fecd6e 100644
--- a/ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.c
+++ b/ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.c
@@ -310,7 +310,7 @@ PL011UartWrite (
// Wait until UART able to accept another char
while ((MmioRead32 (UartBase + UARTFR) & UART_TX_FULL_FLAG_MASK));
- MmioWrite8 (UartBase + UARTDR, *Buffer);
+ MmioWrite8 (UartBase + UARTDR, *Buffer++);
}
return NumberOfBytes;
@@ -338,7 +338,7 @@ PL011UartRead (
for (Count = 0; Count < NumberOfBytes; Count++, Buffer++) {
while ((MmioRead32 (UartBase + UARTFR) & UART_RX_EMPTY_FLAG_MASK) != 0);
- *Buffer = MmioRead8 (UartBase + UARTDR);
+ *Buffer = MmioRead8 (UartBase + UARTDR);
}
return NumberOfBytes;