mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-25 22:54:51 +02:00
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
This commit is contained in:
parent
477be7c4cb
commit
cdd3f03236
@ -310,7 +310,7 @@ PL011UartWrite (
|
|||||||
// Wait until UART able to accept another char
|
// Wait until UART able to accept another char
|
||||||
while ((MmioRead32 (UartBase + UARTFR) & UART_TX_FULL_FLAG_MASK));
|
while ((MmioRead32 (UartBase + UARTFR) & UART_TX_FULL_FLAG_MASK));
|
||||||
|
|
||||||
MmioWrite8 (UartBase + UARTDR, *Buffer);
|
MmioWrite8 (UartBase + UARTDR, *Buffer++);
|
||||||
}
|
}
|
||||||
|
|
||||||
return NumberOfBytes;
|
return NumberOfBytes;
|
||||||
@ -338,7 +338,7 @@ PL011UartRead (
|
|||||||
|
|
||||||
for (Count = 0; Count < NumberOfBytes; Count++, Buffer++) {
|
for (Count = 0; Count < NumberOfBytes; Count++, Buffer++) {
|
||||||
while ((MmioRead32 (UartBase + UARTFR) & UART_RX_EMPTY_FLAG_MASK) != 0);
|
while ((MmioRead32 (UartBase + UARTFR) & UART_RX_EMPTY_FLAG_MASK) != 0);
|
||||||
*Buffer = MmioRead8 (UartBase + UARTDR);
|
*Buffer = MmioRead8 (UartBase + UARTDR);
|
||||||
}
|
}
|
||||||
|
|
||||||
return NumberOfBytes;
|
return NumberOfBytes;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user