SysCall: Fixed MdeModulePkg compilation for VS2019.

This commit is contained in:
Mikhail Krichanov 2024-03-13 11:00:04 +03:00
parent 7e372019d2
commit 233e9e0a23
2 changed files with 5 additions and 5 deletions

View File

@ -643,7 +643,7 @@ CallBootService (
gCpu->GetMemoryAttributes (gCpu, (EFI_PHYSICAL_ADDRESS)(UserRsp->Arguments[5] + sizeof (EFI_HANDLE *) - 1), &Attributes);
ASSERT ((Attributes & EFI_MEMORY_USER) != 0);
PagesNumber = EFI_SIZE_TO_PAGES (Argument4 * sizeof (EFI_HANDLE *));
PagesNumber = (UINT32)EFI_SIZE_TO_PAGES (Argument4 * sizeof (EFI_HANDLE *));
Status = CoreAllocatePages (
AllocateAnyPages,

View File

@ -78,8 +78,8 @@ GoToRing3 (
}
STATIC
EFIAPI
VOID *
EFIAPI
Ring3Copy (
IN VOID *Core,
IN UINT32 Size
@ -248,7 +248,7 @@ CoreFileRead (
Ring3Buffer = NULL;
Ring3Pages = NULL;
PagesNumber = EFI_SIZE_TO_PAGES (sizeof (UINTN *) + *BufferSize);
PagesNumber = (UINT32)EFI_SIZE_TO_PAGES (sizeof (UINTN *) + *BufferSize);
Status = CoreAllocatePages (
AllocateAnyPages,
@ -399,7 +399,7 @@ CoreFileGetInfo (
Ring3InformationType = NULL;
Ring3Pages = NULL;
PagesNumber = EFI_SIZE_TO_PAGES (sizeof (UINTN *) + *BufferSize + sizeof (EFI_GUID));
PagesNumber = (UINT32)EFI_SIZE_TO_PAGES (sizeof (UINTN *) + *BufferSize + sizeof (EFI_GUID));
Status = CoreAllocatePages (
AllocateAnyPages,
@ -550,7 +550,7 @@ CoreFileOpen (
Ring3FileName = NULL;
Ring3Pages = NULL;
PagesNumber = EFI_SIZE_TO_PAGES (sizeof (EFI_FILE_PROTOCOL *) + StrSize (FileName));
PagesNumber = (UINT32)EFI_SIZE_TO_PAGES (sizeof (EFI_FILE_PROTOCOL *) + StrSize (FileName));
Status = CoreAllocatePages (
AllocateAnyPages,