From 024a9e1dcfb7438dd31204c945e6e1b9615294c9 Mon Sep 17 00:00:00 2001 From: klu2 Date: Sat, 28 Feb 2009 18:32:46 +0000 Subject: [PATCH] Fix building issue for linux toolchain git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7735 6f19259b-4bc3-4df7-8a09-765794883524 --- DuetPkg/BiosVideoThunkDxe/BiosVideo.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/DuetPkg/BiosVideoThunkDxe/BiosVideo.c b/DuetPkg/BiosVideoThunkDxe/BiosVideo.c index c8b090cadd..f4a962b522 100644 --- a/DuetPkg/BiosVideoThunkDxe/BiosVideo.c +++ b/DuetPkg/BiosVideoThunkDxe/BiosVideo.c @@ -361,7 +361,7 @@ BiosVideoDriverBindingStart ( Status = gBS->AllocatePool ( EfiBootServicesData, sizeof (BIOS_VIDEO_DEV), - &BiosVideoPrivate + (VOID**)&BiosVideoPrivate ); if (EFI_ERROR (Status)) { goto Done; @@ -383,7 +383,7 @@ BiosVideoDriverBindingStart ( Status = gBS->HandleProtocol ( Controller, &gEfiDevicePathProtocolGuid, - &BiosVideoPrivate->DevicePath + (VOID**)&BiosVideoPrivate->DevicePath ); if (EFI_ERROR (Status)) { goto Done; @@ -1274,7 +1274,7 @@ Returns: Status = gBS->AllocatePool ( EfiBootServicesData, BiosVideoPrivate->ModeData[Index].BytesPerScanLine, - &BiosVideoPrivate->LineBuffer + (VOID**)&BiosVideoPrivate->LineBuffer ); if (EFI_ERROR (Status)) { return Status; @@ -1292,7 +1292,7 @@ Returns: Status = gBS->AllocatePool ( EfiBootServicesData, 4 * 480 * 80, - &BiosVideoPrivate->VgaFrameBuffer + (VOID**)&BiosVideoPrivate->VgaFrameBuffer ); if (EFI_ERROR (Status)) { return Status; @@ -1311,7 +1311,7 @@ Returns: Status = gBS->AllocatePool ( EfiBootServicesData, BiosVideoPrivate->ModeData[Index].BytesPerScanLine * BiosVideoPrivate->ModeData[Index].VerticalResolution, - &BiosVideoPrivate->VbeFrameBuffer + (VOID**)&BiosVideoPrivate->VbeFrameBuffer ); if (EFI_ERROR (Status)) { return Status; @@ -1738,6 +1738,8 @@ Returns: ); } break; + default: + break; } gBS->RestoreTPL (OriginalTPL); @@ -1845,7 +1847,7 @@ Returns: PciIo, EfiPciIoWidthUint8, EFI_PCI_IO_PASS_THROUGH_BAR, - (UINT64) Source, + (UINT64) (UINTN)Source, WidthInBytes, (VOID *) Destination ); @@ -2110,9 +2112,9 @@ Returns: PciIo, EfiPciIoWidthUint8, EFI_PCI_IO_PASS_THROUGH_BAR, - (UINT64) (DestinationAddress + Offset), + (UINT64) ((UINTN)DestinationAddress + Offset), EFI_PCI_IO_PASS_THROUGH_BAR, - (UINT64) (SourceAddress + Offset), + (UINT64) ((UINTN)SourceAddress + Offset), Bytes ); } @@ -2316,7 +2318,7 @@ Returns: PciIo, EfiPciIoWidthUint8, EFI_PCI_IO_PASS_THROUGH_BAR, - (UINT64) Address1, + (UINT64) (UINTN) Address1, 1, &Data ); @@ -2325,7 +2327,7 @@ Returns: PciIo, EfiPciIoWidthUint8, EFI_PCI_IO_PASS_THROUGH_BAR, - (UINT64) Address1, + (UINT64) (UINTN) Address1, 1, &BiosVideoPrivate->LineBuffer[Index1] ); @@ -2339,6 +2341,8 @@ Returns: } } + break; + default: break; }