From c37f052fe912998d88abd58c5446a03b546f4831 Mon Sep 17 00:00:00 2001 From: mdkinney Date: Fri, 29 Jan 2010 23:34:42 +0000 Subject: Remove unnecessary use of FixedPcdxxx() functions and [FixedPcd] INF sections. These should only be used for PCDs that are used to pre-init global variables, pre-init global structures, or size arrays. Do some minor clean ups to INF files git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9867 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/Serial.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/Serial.c') diff --git a/IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/Serial.c b/IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/Serial.c index 03049180e7..03dae25b2d 100644 --- a/IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/Serial.c +++ b/IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/Serial.c @@ -1117,7 +1117,7 @@ IsaSerialSetAttributes ( // Check for default settings and fill in actual values. // if (BaudRate == 0) { - BaudRate = FixedPcdGet64 (PcdUartDefaultBaudRate); + BaudRate = PcdGet64 (PcdUartDefaultBaudRate); } if (ReceiveFifoDepth == 0) { @@ -1129,15 +1129,15 @@ IsaSerialSetAttributes ( } if (Parity == DefaultParity) { - Parity = (EFI_PARITY_TYPE)FixedPcdGet8 (PcdUartDefaultParity); + Parity = (EFI_PARITY_TYPE)PcdGet8 (PcdUartDefaultParity); } if (DataBits == 0) { - DataBits = FixedPcdGet8 (PcdUartDefaultDataBits); + DataBits = PcdGet8 (PcdUartDefaultDataBits); } if (StopBits == DefaultStopBits) { - StopBits = (EFI_STOP_BITS_TYPE) FixedPcdGet8 (PcdUartDefaultStopBits); + StopBits = (EFI_STOP_BITS_TYPE) PcdGet8 (PcdUartDefaultStopBits); } // // 5 and 6 data bits can not be verified on a 16550A UART -- cgit v1.2.3