X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FLibrary%2FBaseSerialPortLib16550%2FBaseSerialPortLib16550.c;h=3209115a3f88f5cc46433f4ad79ac30c8849dfa8;hp=abf4f8f26a8e58e9e5c414fdb1da3ccda20f59dc;hb=cd68e4a8de23e8992a98c281f6fda229ffad19c9;hpb=cfe41b57abb8ba26e4bd1c0b09c8b3506a7c55df diff --git a/MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.c b/MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.c index abf4f8f26a..3209115a3f 100644 --- a/MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.c +++ b/MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.c @@ -2,7 +2,7 @@ 16550 UART Serial Port library functions (C) Copyright 2014 Hewlett-Packard Development Company, L.P.
- Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -77,9 +77,9 @@ SerialPortReadRegister ( ) { if (PcdGetBool (PcdSerialUseMmio)) { - return MmioRead8 (Base + Offset); + return MmioRead8 (Base + Offset * PcdGet32 (PcdSerialRegisterStride)); } else { - return IoRead8 (Base + Offset); + return IoRead8 (Base + Offset * PcdGet32 (PcdSerialRegisterStride)); } } @@ -104,9 +104,9 @@ SerialPortWriteRegister ( ) { if (PcdGetBool (PcdSerialUseMmio)) { - return MmioWrite8 (Base + Offset, Value); + return MmioWrite8 (Base + Offset * PcdGet32 (PcdSerialRegisterStride), Value); } else { - return IoWrite8 (Base + Offset, Value); + return IoWrite8 (Base + Offset * PcdGet32 (PcdSerialRegisterStride), Value); } }