mirror of
https://github.com/acidanthera/audk.git
synced 2025-09-22 17:27:44 +02:00
StandaloneMmPkg/StandaloneMmCore: Fix build errors
This commit is contained in:
parent
0e4af8d5bc
commit
c87fa98d16
@ -292,7 +292,7 @@ MmLoadImage (
|
|||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
ImageSize = UefiImageGetImageSize (&ImageContext, &ImageSize);
|
ImageSize = UefiImageGetImageSize (&ImageContext);
|
||||||
DstBufferPages = EFI_SIZE_TO_PAGES (ImageSize);
|
DstBufferPages = EFI_SIZE_TO_PAGES (ImageSize);
|
||||||
DstBufferSize = EFI_PAGES_TO_SIZE (DstBufferPages);
|
DstBufferSize = EFI_PAGES_TO_SIZE (DstBufferPages);
|
||||||
ImageAlignment = UefiImageGetSegmentAlignment (&ImageContext);
|
ImageAlignment = UefiImageGetSegmentAlignment (&ImageContext);
|
||||||
@ -305,7 +305,7 @@ MmLoadImage (
|
|||||||
//
|
//
|
||||||
// Load the image to our new buffer
|
// Load the image to our new buffer
|
||||||
//
|
//
|
||||||
Status = UefiImageLoadImageForExecution (&ImageContext, (VOID *) (UINTN) DstBuffer, DstBufferSize, NULL, 0);
|
Status = UefiImageLoadImageForExecution (&ImageContext, DstBuffer, DstBufferSize, NULL, 0);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
FreeAlignedPages (DstBuffer, DstBufferPages);
|
FreeAlignedPages (DstBuffer, DstBufferPages);
|
||||||
return Status;
|
return Status;
|
||||||
@ -369,7 +369,7 @@ MmLoadImage (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO | DEBUG_LOAD,
|
DEBUG_INFO | DEBUG_LOAD,
|
||||||
"Loading MM driver at 0x%11p EntryPoint=0x%11p ",
|
"Loading MM driver at 0x%11p EntryPoint=0x%11p ",
|
||||||
(VOID *)(UINTN)ImageBase,
|
DstBuffer,
|
||||||
FUNCTION_ENTRY_POINT (UefiImageLoaderGetImageEntryPoint (&ImageContext))
|
FUNCTION_ENTRY_POINT (UefiImageLoaderGetImageEntryPoint (&ImageContext))
|
||||||
));
|
));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user