mirror of https://github.com/acidanthera/audk.git
Fix the issue in MdeModulePkg that mismatch between PCD type and the PCD Lib API to get the PCD.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9751 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
9c1d98d822
commit
c11fa40c4e
|
@ -2040,7 +2040,7 @@ CreatePciIoDevice (
|
||||||
);
|
);
|
||||||
DEBUG ((EFI_D_INFO, "PCI-IOV B%x.D%x.F%x - SupportedPageSize - 0x%x\n", (UINTN)Bus, (UINTN)Device, (UINTN)Func, PciIoDevice->SystemPageSize));
|
DEBUG ((EFI_D_INFO, "PCI-IOV B%x.D%x.F%x - SupportedPageSize - 0x%x\n", (UINTN)Bus, (UINTN)Device, (UINTN)Func, PciIoDevice->SystemPageSize));
|
||||||
|
|
||||||
PciIoDevice->SystemPageSize = (PcdGet32(PcdSrIovSystemPageSize) & PciIoDevice->SystemPageSize);
|
PciIoDevice->SystemPageSize = (FixedPcdGet32(PcdSrIovSystemPageSize) & PciIoDevice->SystemPageSize);
|
||||||
ASSERT (PciIoDevice->SystemPageSize != 0);
|
ASSERT (PciIoDevice->SystemPageSize != 0);
|
||||||
|
|
||||||
PciIo->Pci.Write (
|
PciIo->Pci.Write (
|
||||||
|
|
|
@ -193,7 +193,7 @@ USBKeyboardDriverBindingStart (
|
||||||
//
|
//
|
||||||
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
||||||
EFI_PROGRESS_CODE,
|
EFI_PROGRESS_CODE,
|
||||||
PcdGet32 (PcdStatusCodeValueKeyboardEnable),
|
FixedPcdGet32 (PcdStatusCodeValueKeyboardEnable),
|
||||||
UsbKeyboardDevice->DevicePath
|
UsbKeyboardDevice->DevicePath
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -202,7 +202,7 @@ USBKeyboardDriverBindingStart (
|
||||||
//
|
//
|
||||||
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
||||||
EFI_PROGRESS_CODE,
|
EFI_PROGRESS_CODE,
|
||||||
PcdGet32 (PcdStatusCodeValueKeyboardPresenceDetect),
|
FixedPcdGet32 (PcdStatusCodeValueKeyboardPresenceDetect),
|
||||||
UsbKeyboardDevice->DevicePath
|
UsbKeyboardDevice->DevicePath
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -473,7 +473,7 @@ USBKeyboardDriverBindingStop (
|
||||||
//
|
//
|
||||||
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
||||||
EFI_PROGRESS_CODE,
|
EFI_PROGRESS_CODE,
|
||||||
PcdGet32 (PcdStatusCodeValueKeyboardDisable),
|
FixedPcdGet32 (PcdStatusCodeValueKeyboardDisable),
|
||||||
UsbKeyboardDevice->DevicePath
|
UsbKeyboardDevice->DevicePath
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -658,7 +658,7 @@ USBKeyboardReset (
|
||||||
|
|
||||||
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
||||||
EFI_PROGRESS_CODE,
|
EFI_PROGRESS_CODE,
|
||||||
PcdGet32 (PcdStatusCodeValueKeyboardReset),
|
FixedPcdGet32 (PcdStatusCodeValueKeyboardReset),
|
||||||
UsbKeyboardDevice->DevicePath
|
UsbKeyboardDevice->DevicePath
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -669,7 +669,7 @@ USBKeyboardReset (
|
||||||
if (!ExtendedVerification) {
|
if (!ExtendedVerification) {
|
||||||
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
||||||
EFI_PROGRESS_CODE,
|
EFI_PROGRESS_CODE,
|
||||||
PcdGet32 (PcdStatusCodeValueKeyboardClearBuffer),
|
FixedPcdGet32 (PcdStatusCodeValueKeyboardClearBuffer),
|
||||||
UsbKeyboardDevice->DevicePath
|
UsbKeyboardDevice->DevicePath
|
||||||
);
|
);
|
||||||
//
|
//
|
||||||
|
|
|
@ -811,7 +811,7 @@ InitUSBKeyboard (
|
||||||
|
|
||||||
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
||||||
EFI_PROGRESS_CODE,
|
EFI_PROGRESS_CODE,
|
||||||
PcdGet32 (PcdStatusCodeValueKeyboardSelfTest),
|
FixedPcdGet32 (PcdStatusCodeValueKeyboardSelfTest),
|
||||||
UsbKeyboardDevice->DevicePath
|
UsbKeyboardDevice->DevicePath
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -846,7 +846,7 @@ InitUSBKeyboard (
|
||||||
//
|
//
|
||||||
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
||||||
EFI_ERROR_CODE | EFI_ERROR_MINOR,
|
EFI_ERROR_CODE | EFI_ERROR_MINOR,
|
||||||
PcdGet32 (PcdStatusCodeValueKeyboardInterfaceError),
|
FixedPcdGet32 (PcdStatusCodeValueKeyboardInterfaceError),
|
||||||
UsbKeyboardDevice->DevicePath
|
UsbKeyboardDevice->DevicePath
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1012,7 +1012,7 @@ KeyboardHandler (
|
||||||
//
|
//
|
||||||
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
||||||
EFI_ERROR_CODE | EFI_ERROR_MINOR,
|
EFI_ERROR_CODE | EFI_ERROR_MINOR,
|
||||||
PcdGet32 (PcdStatusCodeValueKeyboardInputError),
|
FixedPcdGet32 (PcdStatusCodeValueKeyboardInputError),
|
||||||
UsbKeyboardDevice->DevicePath
|
UsbKeyboardDevice->DevicePath
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -232,7 +232,7 @@ USBMouseAbsolutePointerDriverBindingStart (
|
||||||
//
|
//
|
||||||
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
||||||
EFI_ERROR_CODE | EFI_ERROR_MINOR,
|
EFI_ERROR_CODE | EFI_ERROR_MINOR,
|
||||||
PcdGet32 (PcdStatusCodeValueMouseInterfaceError),
|
FixedPcdGet32 (PcdStatusCodeValueMouseInterfaceError),
|
||||||
UsbMouseAbsolutePointerDevice->DevicePath
|
UsbMouseAbsolutePointerDevice->DevicePath
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -275,7 +275,7 @@ USBMouseAbsolutePointerDriverBindingStart (
|
||||||
//
|
//
|
||||||
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
||||||
EFI_PROGRESS_CODE,
|
EFI_PROGRESS_CODE,
|
||||||
PcdGet32 (PcdStatusCodeValueMouseEnable),
|
FixedPcdGet32 (PcdStatusCodeValueMouseEnable),
|
||||||
UsbMouseAbsolutePointerDevice->DevicePath
|
UsbMouseAbsolutePointerDevice->DevicePath
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -401,7 +401,7 @@ USBMouseAbsolutePointerDriverBindingStop (
|
||||||
//
|
//
|
||||||
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
||||||
EFI_PROGRESS_CODE,
|
EFI_PROGRESS_CODE,
|
||||||
PcdGet32 (PcdStatusCodeValueMouseDisable),
|
FixedPcdGet32 (PcdStatusCodeValueMouseDisable),
|
||||||
UsbMouseAbsolutePointerDevice->DevicePath
|
UsbMouseAbsolutePointerDevice->DevicePath
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -682,7 +682,7 @@ OnMouseInterruptComplete (
|
||||||
//
|
//
|
||||||
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
||||||
EFI_ERROR_CODE | EFI_ERROR_MINOR,
|
EFI_ERROR_CODE | EFI_ERROR_MINOR,
|
||||||
PcdGet32 (PcdStatusCodeValueMouseInputError),
|
FixedPcdGet32 (PcdStatusCodeValueMouseInputError),
|
||||||
UsbMouseAbsolutePointerDevice->DevicePath
|
UsbMouseAbsolutePointerDevice->DevicePath
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -833,7 +833,7 @@ UsbMouseAbsolutePointerReset (
|
||||||
|
|
||||||
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
||||||
EFI_PROGRESS_CODE,
|
EFI_PROGRESS_CODE,
|
||||||
PcdGet32 (PcdStatusCodeValueMouseReset),
|
FixedPcdGet32 (PcdStatusCodeValueMouseReset),
|
||||||
UsbMouseAbsolutePointerDevice->DevicePath
|
UsbMouseAbsolutePointerDevice->DevicePath
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -232,7 +232,7 @@ USBMouseDriverBindingStart (
|
||||||
//
|
//
|
||||||
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
||||||
EFI_ERROR_CODE | EFI_ERROR_MINOR,
|
EFI_ERROR_CODE | EFI_ERROR_MINOR,
|
||||||
PcdGet32 (PcdStatusCodeValueMouseInterfaceError),
|
FixedPcdGet32 (PcdStatusCodeValueMouseInterfaceError),
|
||||||
UsbMouseDevice->DevicePath
|
UsbMouseDevice->DevicePath
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -275,7 +275,7 @@ USBMouseDriverBindingStart (
|
||||||
//
|
//
|
||||||
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
||||||
EFI_PROGRESS_CODE,
|
EFI_PROGRESS_CODE,
|
||||||
PcdGet32 (PcdStatusCodeValueMouseEnable),
|
FixedPcdGet32 (PcdStatusCodeValueMouseEnable),
|
||||||
UsbMouseDevice->DevicePath
|
UsbMouseDevice->DevicePath
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -401,7 +401,7 @@ USBMouseDriverBindingStop (
|
||||||
//
|
//
|
||||||
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
||||||
EFI_PROGRESS_CODE,
|
EFI_PROGRESS_CODE,
|
||||||
PcdGet32 (PcdStatusCodeValueMouseDisable),
|
FixedPcdGet32 (PcdStatusCodeValueMouseDisable),
|
||||||
UsbMouseDevice->DevicePath
|
UsbMouseDevice->DevicePath
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -688,7 +688,7 @@ OnMouseInterruptComplete (
|
||||||
//
|
//
|
||||||
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
||||||
EFI_ERROR_CODE | EFI_ERROR_MINOR,
|
EFI_ERROR_CODE | EFI_ERROR_MINOR,
|
||||||
PcdGet32 (PcdStatusCodeValueMouseInputError),
|
FixedPcdGet32 (PcdStatusCodeValueMouseInputError),
|
||||||
UsbMouseDevice->DevicePath
|
UsbMouseDevice->DevicePath
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -838,7 +838,7 @@ UsbMouseReset (
|
||||||
|
|
||||||
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
||||||
EFI_PROGRESS_CODE,
|
EFI_PROGRESS_CODE,
|
||||||
PcdGet32 (PcdStatusCodeValueMouseReset),
|
FixedPcdGet32 (PcdStatusCodeValueMouseReset),
|
||||||
UsbMouseDevice->DevicePath
|
UsbMouseDevice->DevicePath
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -271,7 +271,7 @@ DxeLoadCore (
|
||||||
//
|
//
|
||||||
// Report Status Code EFI_SW_PEI_PC_HANDOFF_TO_NEXT
|
// Report Status Code EFI_SW_PEI_PC_HANDOFF_TO_NEXT
|
||||||
//
|
//
|
||||||
REPORT_STATUS_CODE (EFI_PROGRESS_CODE, PcdGet32 (PcdStatusCodeValuePeiHandoffToDxe));
|
REPORT_STATUS_CODE (EFI_PROGRESS_CODE, FixedPcdGet32 (PcdStatusCodeValuePeiHandoffToDxe));
|
||||||
|
|
||||||
DEBUG ((DEBUG_INFO | DEBUG_LOAD, "Loading DXE CORE at 0x%11p EntryPoint=0x%11p\n", (VOID *)(UINTN)DxeCoreAddress, FUNCTION_ENTRY_POINT (DxeCoreEntryPoint)));
|
DEBUG ((DEBUG_INFO | DEBUG_LOAD, "Loading DXE CORE at 0x%11p EntryPoint=0x%11p\n", (VOID *)(UINTN)DxeCoreAddress, FUNCTION_ENTRY_POINT (DxeCoreEntryPoint)));
|
||||||
|
|
||||||
|
|
|
@ -277,7 +277,7 @@ RuntimeDriverSetVirtualAddressMap (
|
||||||
//
|
//
|
||||||
// ReporstStatusCodeLib will check and make sure this service can be called in runtime mode.
|
// ReporstStatusCodeLib will check and make sure this service can be called in runtime mode.
|
||||||
//
|
//
|
||||||
REPORT_STATUS_CODE (EFI_PROGRESS_CODE, PcdGet32 (PcdStatusCodeValueSetVirtualAddressMap));
|
REPORT_STATUS_CODE (EFI_PROGRESS_CODE, FixedPcdGet32 (PcdStatusCodeValueSetVirtualAddressMap));
|
||||||
|
|
||||||
//
|
//
|
||||||
// Signal all the EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE events.
|
// Signal all the EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE events.
|
||||||
|
|
|
@ -66,7 +66,7 @@ WatchdogTimerDriverExpires (
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
REPORT_STATUS_CODE (EFI_ERROR_CODE | EFI_ERROR_MINOR, PcdGet32 (PcdStatusCodeValueEfiWatchDogTimerExpired));
|
REPORT_STATUS_CODE (EFI_ERROR_CODE | EFI_ERROR_MINOR, FixedPcdGet32 (PcdStatusCodeValueEfiWatchDogTimerExpired));
|
||||||
|
|
||||||
//
|
//
|
||||||
// If a notification function has been registered, then call it
|
// If a notification function has been registered, then call it
|
||||||
|
|
Loading…
Reference in New Issue