From d8bee43ce44db3012de2274b135ede6d06106f7d Mon Sep 17 00:00:00 2001 From: eric_tian Date: Wed, 13 Aug 2008 04:53:33 +0000 Subject: Fix build issue in linux environment. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5636 6f19259b-4bc3-4df7-8a09-765794883524 --- DuetPkg/Library/DuetBdsLib/BdsPlatform.c | 16 ++++++++-------- DuetPkg/Library/DuetBdsLib/BdsPlatform.h | 4 ++-- DuetPkg/Library/DuetBdsLib/PlatformBds.inf | 1 - 3 files changed, 10 insertions(+), 11 deletions(-) (limited to 'DuetPkg/Library/DuetBdsLib') diff --git a/DuetPkg/Library/DuetBdsLib/BdsPlatform.c b/DuetPkg/Library/DuetBdsLib/BdsPlatform.c index c927d13eec..bf806e3615 100644 --- a/DuetPkg/Library/DuetBdsLib/BdsPlatform.c +++ b/DuetPkg/Library/DuetBdsLib/BdsPlatform.c @@ -73,7 +73,7 @@ Returns: // According to UEFI Spec, we should make sure Smbios table, // ACPI table and Mps tables kept in memory of specified type // - ConvertSystemTable(TableGuidArray[Index], &Table); + ConvertSystemTable(TableGuidArray[Index], (VOID**)&Table); gBS->InstallConfigurationTable (TableGuidArray[Index], (VOID *)Table); } } @@ -83,7 +83,7 @@ Returns: } #define EFI_LDR_MEMORY_DESCRIPTOR_GUID \ - { 0x7701d7e5, 0x7d1d, 0x4432, 0xa4, 0x68, 0x67, 0x3d, 0xab, 0x8a, 0xde, 0x60 } + { 0x7701d7e5, 0x7d1d, 0x4432, {0xa4, 0x68, 0x67, 0x3d, 0xab, 0x8a, 0xde, 0x60 }} EFI_GUID gEfiLdrMemoryDescriptorGuid = EFI_LDR_MEMORY_DESCRIPTOR_GUID; @@ -177,7 +177,7 @@ UpdateMemoryMap ( if (MemoryDescHob.MemDesc[Index].PhysicalStart < 0x100000) { continue; } - if (MemoryDescHob.MemDesc[Index].PhysicalStart >= 0x100000000) { + if (MemoryDescHob.MemDesc[Index].PhysicalStart >= 0x100000000ULL) { continue; } if ((MemoryDescHob.MemDesc[Index].Type == EfiReservedMemoryType) || @@ -557,7 +557,7 @@ Returns: Status = gBS->HandleProtocol ( DeviceHandle, &gEfiDevicePathProtocolGuid, - &DevicePath + (VOID*)&DevicePath ); if (EFI_ERROR (Status)) { return Status; @@ -655,7 +655,7 @@ GetGopDevicePath ( // Add all the child handles as possible Console Device // for (Index = 0; Index < GopHandleCount; Index++) { - Status = gBS->HandleProtocol (GopHandleBuffer[Index], &gEfiDevicePathProtocolGuid, &TempDevicePath); + Status = gBS->HandleProtocol (GopHandleBuffer[Index], &gEfiDevicePathProtocolGuid, (VOID*)&TempDevicePath); if (EFI_ERROR (Status)) { continue; } @@ -717,7 +717,7 @@ Returns: Status = gBS->HandleProtocol ( DeviceHandle, &gEfiDevicePathProtocolGuid, - &DevicePath + (VOID*)&DevicePath ); if (EFI_ERROR (Status)) { return Status; @@ -760,7 +760,7 @@ Returns: Status = gBS->HandleProtocol ( DeviceHandle, &gEfiDevicePathProtocolGuid, - &DevicePath + (VOID*)&DevicePath ); if (EFI_ERROR (Status)) { return Status; @@ -821,7 +821,7 @@ Returns: } for (Index = 0; Index < HandleCount; Index++) { - Status = gBS->HandleProtocol (HandleBuffer[Index], &gEfiPciIoProtocolGuid, &PciIo); + Status = gBS->HandleProtocol (HandleBuffer[Index], &gEfiPciIoProtocolGuid, (VOID*)&PciIo); if (EFI_ERROR (Status)) { continue; } diff --git a/DuetPkg/Library/DuetBdsLib/BdsPlatform.h b/DuetPkg/Library/DuetBdsLib/BdsPlatform.h index ce2a0ba2b8..9d1a3a25d5 100644 --- a/DuetPkg/Library/DuetBdsLib/BdsPlatform.h +++ b/DuetPkg/Library/DuetBdsLib/BdsPlatform.h @@ -27,7 +27,7 @@ Abstract: #include #include -#include +#include #include #include @@ -48,7 +48,7 @@ Abstract: #include #include -#include +#include #include #include #include diff --git a/DuetPkg/Library/DuetBdsLib/PlatformBds.inf b/DuetPkg/Library/DuetBdsLib/PlatformBds.inf index 12d507b5d6..d92211797e 100644 --- a/DuetPkg/Library/DuetBdsLib/PlatformBds.inf +++ b/DuetPkg/Library/DuetBdsLib/PlatformBds.inf @@ -38,7 +38,6 @@ [Packages] MdePkg/MdePkg.dec MdeModulePkg/MdeModulePkg.dec - Nt32Pkg/Nt32Pkg.dec DuetPkg/DuetPkg.dec [LibraryClasses] -- cgit v1.2.3