mirror of https://github.com/acidanthera/audk.git
ArmPlatformPkg: Fix build issues
Other compiler version ... other warnings git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11970 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
d326412cce
commit
fb42fffeb8
|
@ -112,7 +112,7 @@
|
|||
# BDS - Boot Manager
|
||||
#
|
||||
gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Platform"|VOID*|0x00000019
|
||||
gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L""|VOID*|0x0000000C
|
||||
gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Default Boot Device"|VOID*|0x0000000C
|
||||
gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L""|VOID*|0x0000000D
|
||||
gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|""|VOID*|0x000000F
|
||||
# PcdDefaultBootType define the type of the binary pointed by PcdDefaultBootDevicePath:
|
||||
|
|
|
@ -351,7 +351,7 @@ BdsEntry (
|
|||
//
|
||||
// Declare the Firmware Vendor
|
||||
//
|
||||
if (PcdGetPtr(PcdFirmwareVendor)) {
|
||||
if (FixedPcdGetPtr(PcdFirmwareVendor) != NULL) {
|
||||
Size = 0x100;
|
||||
gST->FirmwareVendor = AllocateRuntimePool (Size);
|
||||
ASSERT (gST->FirmwareVendor != NULL);
|
||||
|
|
|
@ -128,8 +128,8 @@ MmuEntryGetAddress (
|
|||
} else if ((Entry.Value & 0x3) == 2) { // Section Type
|
||||
return Entry.Value & TT_DESCRIPTOR_SECTION_BASE_ADDRESS_MASK;
|
||||
} else if ((Entry.Value & 0x3) == 1) { // Level2 Table
|
||||
MMU_ENTRY Entry = MmuEntryCreate(Level2,(UINT32*)(Entry.Value & 0xFFFFC000),0);
|
||||
return MmuEntryGetAddress(Entry);
|
||||
MMU_ENTRY Level2Entry = MmuEntryCreate (Level2,(UINT32*)(Entry.Value & 0xFFFFC000),0);
|
||||
return MmuEntryGetAddress (Level2Entry);
|
||||
} else { // Page Type
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -135,6 +135,8 @@ CEntryPoint (
|
|||
{
|
||||
UINT64 StartTimeStamp;
|
||||
|
||||
StartTimeStamp = 0;
|
||||
|
||||
if ((CoreId == 0) && PerformanceMeasurementEnabled ()) {
|
||||
// Initialize the Timer Library to setup the Timer HW controller
|
||||
TimerConstructor ();
|
||||
|
|
|
@ -206,7 +206,7 @@ CreateHobList (
|
|||
|
||||
BuildResourceDescriptorHob (EFI_RESOURCE_SYSTEM_MEMORY, Attributes, (UINTN)MemoryBegin, MemoryLength);
|
||||
|
||||
BuildStackHob ((UINTN)StackBase, ((UINT64)MemoryBegin + MemoryLength) - (UINTN)StackBase);
|
||||
BuildStackHob ((EFI_PHYSICAL_ADDRESS)(UINTN)StackBase, ((UINTN)MemoryBegin + MemoryLength) - (UINTN)StackBase);
|
||||
|
||||
if (FeaturePcdGet (PcdPrePiProduceMemoryTypeInformationHob)) {
|
||||
// Optional feature that helps prevent EFI memory map fragmentation.
|
||||
|
|
Loading…
Reference in New Issue