Fix building issue for linux toolchain

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7735 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2 2009-02-28 18:32:46 +00:00
parent 439c34f3fe
commit 024a9e1dcf

View File

@ -361,7 +361,7 @@ BiosVideoDriverBindingStart (
Status = gBS->AllocatePool ( Status = gBS->AllocatePool (
EfiBootServicesData, EfiBootServicesData,
sizeof (BIOS_VIDEO_DEV), sizeof (BIOS_VIDEO_DEV),
&BiosVideoPrivate (VOID**)&BiosVideoPrivate
); );
if (EFI_ERROR (Status)) { if (EFI_ERROR (Status)) {
goto Done; goto Done;
@ -383,7 +383,7 @@ BiosVideoDriverBindingStart (
Status = gBS->HandleProtocol ( Status = gBS->HandleProtocol (
Controller, Controller,
&gEfiDevicePathProtocolGuid, &gEfiDevicePathProtocolGuid,
&BiosVideoPrivate->DevicePath (VOID**)&BiosVideoPrivate->DevicePath
); );
if (EFI_ERROR (Status)) { if (EFI_ERROR (Status)) {
goto Done; goto Done;
@ -1274,7 +1274,7 @@ Returns:
Status = gBS->AllocatePool ( Status = gBS->AllocatePool (
EfiBootServicesData, EfiBootServicesData,
BiosVideoPrivate->ModeData[Index].BytesPerScanLine, BiosVideoPrivate->ModeData[Index].BytesPerScanLine,
&BiosVideoPrivate->LineBuffer (VOID**)&BiosVideoPrivate->LineBuffer
); );
if (EFI_ERROR (Status)) { if (EFI_ERROR (Status)) {
return Status; return Status;
@ -1292,7 +1292,7 @@ Returns:
Status = gBS->AllocatePool ( Status = gBS->AllocatePool (
EfiBootServicesData, EfiBootServicesData,
4 * 480 * 80, 4 * 480 * 80,
&BiosVideoPrivate->VgaFrameBuffer (VOID**)&BiosVideoPrivate->VgaFrameBuffer
); );
if (EFI_ERROR (Status)) { if (EFI_ERROR (Status)) {
return Status; return Status;
@ -1311,7 +1311,7 @@ Returns:
Status = gBS->AllocatePool ( Status = gBS->AllocatePool (
EfiBootServicesData, EfiBootServicesData,
BiosVideoPrivate->ModeData[Index].BytesPerScanLine * BiosVideoPrivate->ModeData[Index].VerticalResolution, BiosVideoPrivate->ModeData[Index].BytesPerScanLine * BiosVideoPrivate->ModeData[Index].VerticalResolution,
&BiosVideoPrivate->VbeFrameBuffer (VOID**)&BiosVideoPrivate->VbeFrameBuffer
); );
if (EFI_ERROR (Status)) { if (EFI_ERROR (Status)) {
return Status; return Status;
@ -1738,6 +1738,8 @@ Returns:
); );
} }
break; break;
default:
break;
} }
gBS->RestoreTPL (OriginalTPL); gBS->RestoreTPL (OriginalTPL);
@ -1845,7 +1847,7 @@ Returns:
PciIo, PciIo,
EfiPciIoWidthUint8, EfiPciIoWidthUint8,
EFI_PCI_IO_PASS_THROUGH_BAR, EFI_PCI_IO_PASS_THROUGH_BAR,
(UINT64) Source, (UINT64) (UINTN)Source,
WidthInBytes, WidthInBytes,
(VOID *) Destination (VOID *) Destination
); );
@ -2110,9 +2112,9 @@ Returns:
PciIo, PciIo,
EfiPciIoWidthUint8, EfiPciIoWidthUint8,
EFI_PCI_IO_PASS_THROUGH_BAR, EFI_PCI_IO_PASS_THROUGH_BAR,
(UINT64) (DestinationAddress + Offset), (UINT64) ((UINTN)DestinationAddress + Offset),
EFI_PCI_IO_PASS_THROUGH_BAR, EFI_PCI_IO_PASS_THROUGH_BAR,
(UINT64) (SourceAddress + Offset), (UINT64) ((UINTN)SourceAddress + Offset),
Bytes Bytes
); );
} }
@ -2316,7 +2318,7 @@ Returns:
PciIo, PciIo,
EfiPciIoWidthUint8, EfiPciIoWidthUint8,
EFI_PCI_IO_PASS_THROUGH_BAR, EFI_PCI_IO_PASS_THROUGH_BAR,
(UINT64) Address1, (UINT64) (UINTN) Address1,
1, 1,
&Data &Data
); );
@ -2325,7 +2327,7 @@ Returns:
PciIo, PciIo,
EfiPciIoWidthUint8, EfiPciIoWidthUint8,
EFI_PCI_IO_PASS_THROUGH_BAR, EFI_PCI_IO_PASS_THROUGH_BAR,
(UINT64) Address1, (UINT64) (UINTN) Address1,
1, 1,
&BiosVideoPrivate->LineBuffer[Index1] &BiosVideoPrivate->LineBuffer[Index1]
); );
@ -2339,6 +2341,8 @@ Returns:
} }
} }
break;
default:
break; break;
} }