X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FCore%2FDxe%2FImage%2FImage.c;h=ae4daebd9ea33d87a6e9d6ee1a458a1a1226443c;hp=7752fab70dc5f8880aa3f61cf9e132df17664326;hb=852081fc68a3b8fe372cda5fb009058d8a077ab9;hpb=d7c0e60c44d73ca4834a7ca4ab63509349e15899 diff --git a/MdeModulePkg/Core/Dxe/Image/Image.c b/MdeModulePkg/Core/Dxe/Image/Image.c index 7752fab70d..ae4daebd9e 100644 --- a/MdeModulePkg/Core/Dxe/Image/Image.c +++ b/MdeModulePkg/Core/Dxe/Image/Image.c @@ -355,7 +355,7 @@ GetPeCoffImageFixLoadingAssignedAddress( // hold the spcified address. If the feature is configured as load module at fixed offset, ImageAddress hold an offset // relative to top address // - if ((INT64)FixedPcdGet64(PcdLoadModuleAtFixAddressEnable) < 0) { + if ((INT64)PcdGet64(PcdLoadModuleAtFixAddressEnable) < 0) { ImageContext->ImageAddress = gLoadModuleAtFixAddressConfigurationTable.DxeCodeTopAddress + (INT64)ImageContext->ImageAddress; } // @@ -367,7 +367,7 @@ GetPeCoffImageFixLoadingAssignedAddress( } SectionHeaderOffset += sizeof (EFI_IMAGE_SECTION_HEADER); } - DEBUG ((EFI_D_INFO|EFI_D_LOAD, "LOADING MODULE FIXED INFO: Loading module at fixed address %x. Status = %r \n", ImageContext->ImageAddress, Status)); + DEBUG ((EFI_D_INFO|EFI_D_LOAD, "LOADING MODULE FIXED INFO: Loading module at fixed address 0x%11p. Status = %r \n", (VOID *)(UINTN)(ImageContext->ImageAddress), Status)); return Status; } /** @@ -479,7 +479,7 @@ CoreLoadPeImage ( // If Loading Module At Fixed Address feature is enabled, the module should be loaded to // a specified address. // - if (FixedPcdGet64(PcdLoadModuleAtFixAddressEnable) != 0 ) { + if (PcdGet64(PcdLoadModuleAtFixAddressEnable) != 0 ) { Status = GetPeCoffImageFixLoadingAssignedAddress (&(Image->ImageContext)); if (EFI_ERROR (Status)) {