ArmVirtPkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the ArmVirtPkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
This commit is contained in:
committed by
mergify[bot]
parent
40b0b23ed3
commit
2b16a4fb91
@@ -13,7 +13,7 @@
|
||||
#include <Library/MemoryAllocationLib.h>
|
||||
|
||||
// Number of Virtual Memory Map Descriptors
|
||||
#define MAX_VIRTUAL_MEMORY_MAP_DESCRIPTORS 5
|
||||
#define MAX_VIRTUAL_MEMORY_MAP_DESCRIPTORS 5
|
||||
|
||||
//
|
||||
// mach-virt's core peripherals such as the UART, the GIC and the RTC are
|
||||
@@ -21,8 +21,8 @@
|
||||
// in its entirety rather than device by device. Note that it does not
|
||||
// cover any of the NOR flash banks or PCI resource windows.
|
||||
//
|
||||
#define MACH_VIRT_PERIPH_BASE 0x08000000
|
||||
#define MACH_VIRT_PERIPH_SIZE SIZE_128MB
|
||||
#define MACH_VIRT_PERIPH_BASE 0x08000000
|
||||
#define MACH_VIRT_PERIPH_SIZE SIZE_128MB
|
||||
|
||||
/**
|
||||
Return the Virtual Memory Map of your platform
|
||||
@@ -39,15 +39,17 @@
|
||||
**/
|
||||
VOID
|
||||
ArmVirtGetMemoryMap (
|
||||
OUT ARM_MEMORY_REGION_DESCRIPTOR **VirtualMemoryMap
|
||||
OUT ARM_MEMORY_REGION_DESCRIPTOR **VirtualMemoryMap
|
||||
)
|
||||
{
|
||||
ARM_MEMORY_REGION_DESCRIPTOR *VirtualMemoryTable;
|
||||
|
||||
ASSERT (VirtualMemoryMap != NULL);
|
||||
|
||||
VirtualMemoryTable = AllocatePool (sizeof (ARM_MEMORY_REGION_DESCRIPTOR) *
|
||||
MAX_VIRTUAL_MEMORY_MAP_DESCRIPTORS);
|
||||
VirtualMemoryTable = AllocatePool (
|
||||
sizeof (ARM_MEMORY_REGION_DESCRIPTOR) *
|
||||
MAX_VIRTUAL_MEMORY_MAP_DESCRIPTORS
|
||||
);
|
||||
|
||||
if (VirtualMemoryTable == NULL) {
|
||||
DEBUG ((DEBUG_ERROR, "%a: Error: Failed AllocatePool()\n", __FUNCTION__));
|
||||
@@ -60,14 +62,17 @@ ArmVirtGetMemoryMap (
|
||||
VirtualMemoryTable[0].Length = PcdGet64 (PcdSystemMemorySize);
|
||||
VirtualMemoryTable[0].Attributes = ARM_MEMORY_REGION_ATTRIBUTE_WRITE_BACK;
|
||||
|
||||
DEBUG ((DEBUG_INFO, "%a: Dumping System DRAM Memory Map:\n"
|
||||
"\tPhysicalBase: 0x%lX\n"
|
||||
"\tVirtualBase: 0x%lX\n"
|
||||
"\tLength: 0x%lX\n",
|
||||
__FUNCTION__,
|
||||
VirtualMemoryTable[0].PhysicalBase,
|
||||
VirtualMemoryTable[0].VirtualBase,
|
||||
VirtualMemoryTable[0].Length));
|
||||
DEBUG ((
|
||||
DEBUG_INFO,
|
||||
"%a: Dumping System DRAM Memory Map:\n"
|
||||
"\tPhysicalBase: 0x%lX\n"
|
||||
"\tVirtualBase: 0x%lX\n"
|
||||
"\tLength: 0x%lX\n",
|
||||
__FUNCTION__,
|
||||
VirtualMemoryTable[0].PhysicalBase,
|
||||
VirtualMemoryTable[0].VirtualBase,
|
||||
VirtualMemoryTable[0].Length
|
||||
));
|
||||
|
||||
// Memory mapped peripherals (UART, RTC, GIC, virtio-mmio, etc)
|
||||
VirtualMemoryTable[1].PhysicalBase = MACH_VIRT_PERIPH_BASE;
|
||||
|
Reference in New Issue
Block a user