# ARM processor package.\r
#\r
# Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR>\r
-# Copyright (c) 2011-2012, ARM Limited. All rights reserved.\r
+# Copyright (c) 2011 - 2012, ARM Limited. All rights reserved.\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
\r
DEBUG ((EFI_D_PAGE, "Converting section at 0x%x to pages\n", (UINTN)BaseAddress));\r
\r
- // obtain page table base\r
+ // Obtain page table base\r
FirstLevelTable = (ARM_FIRST_LEVEL_DESCRIPTOR *)ArmGetTTBR0BaseAddress ();\r
\r
- // calculate index into first level translation table for start of modification\r
+ // Calculate index into first level translation table for start of modification\r
FirstLevelIdx = TT_DESCRIPTOR_SECTION_BASE_ADDRESS(BaseAddress) >> TT_DESCRIPTOR_SECTION_BASE_SHIFT;\r
ASSERT (FirstLevelIdx < TRANSLATION_TABLE_SECTION_COUNT);\r
\r
- // get section attributes and convert to page attributes\r
+ // Get section attributes and convert to page attributes\r
SectionDescriptor = FirstLevelTable[FirstLevelIdx];\r
PageDescriptor = TT_DESCRIPTOR_PAGE_TYPE_PAGE;\r
PageDescriptor |= TT_DESCRIPTOR_CONVERT_TO_PAGE_CACHE_POLICY(SectionDescriptor,0);\r
PageDescriptor |= TT_DESCRIPTOR_CONVERT_TO_PAGE_NG(SectionDescriptor);\r
PageDescriptor |= TT_DESCRIPTOR_CONVERT_TO_PAGE_S(SectionDescriptor);\r
\r
- // allocate a page table for the 4KB entries (we use up a full page even though we only need 1KB)\r
+ // Allocate a page table for the 4KB entries (we use up a full page even though we only need 1KB)\r
Status = gBS->AllocatePages (AllocateAnyPages, EfiBootServicesData, 1, &PageTableAddr);\r
if (EFI_ERROR(Status)) {\r
return Status;\r
\r
PageTable = (volatile ARM_PAGE_TABLE_ENTRY *)(UINTN)PageTableAddr;\r
\r
- // write the page table entries out\r
+ // Write the page table entries out\r
for (Index = 0; Index < TRANSLATION_TABLE_PAGE_COUNT; Index++) {\r
PageTable[Index] = TT_DESCRIPTOR_PAGE_BASE_ADDRESS(BaseAddress + (Index << 12)) | PageDescriptor;\r
}\r
\r
- // flush d-cache so descriptors make it back to uncached memory for subsequent table walks\r
+ // Flush d-cache so descriptors make it back to uncached memory for subsequent table walks\r
WriteBackInvalidateDataCacheRange ((VOID *)(UINTN)PageTableAddr, TT_DESCRIPTOR_PAGE_SIZE);\r
\r
- // formulate page table entry, Domain=0, NS=0\r
+ // Formulate page table entry, Domain=0, NS=0\r
PageTableDescriptor = (((UINTN)PageTableAddr) & TT_DESCRIPTOR_SECTION_PAGETABLE_ADDRESS_MASK) | TT_DESCRIPTOR_SECTION_TYPE_PAGE_TABLE;\r
\r
- // write the page table entry out, replacing section entry\r
+ // Write the page table entry out, replacing section entry\r
FirstLevelTable[FirstLevelIdx] = PageTableDescriptor;\r
\r
return EFI_SUCCESS;\r
return EFI_UNSUPPORTED;
}
- // calculate enable register offset and bit position
+ // Calculate enable register offset and bit position
RegOffset = Source / 32;
RegShift = Source % 32;
- // write set-enable register
+ // Write set-enable register
MmioWrite32 (PcdGet32(PcdGicDistributorBase) + ARM_GIC_ICDISER + (4*RegOffset), 1 << RegShift);
return EFI_SUCCESS;
{
UINT64 TimerTicks;
- // always disable the timer
+ // Always disable the timer
ArmArchTimerDisableTimer ();
if (TimerPeriod != 0) {
#define __SEMIHOST_FS_H__\r
\r
EFI_STATUS\r
-SemihostFsSupported(\r
- IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
- IN EFI_HANDLE Controller,\r
- IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath\r
- );\r
-\r
-EFI_STATUS\r
-SemihostFsStart(\r
- IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
- IN EFI_HANDLE Controller,\r
- IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath\r
- );\r
-\r
-EFI_STATUS\r
-SemihostFsStop(\r
- IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
- IN EFI_HANDLE Controller,\r
- IN UINTN NumberOfChildren,\r
- IN EFI_HANDLE *ChildHandleBuffer\r
- );\r
-\r
-EFI_STATUS\r
-VolumeOpen(\r
+VolumeOpen (\r
IN EFI_SIMPLE_FILE_SYSTEM_PROTOCOL *This,\r
OUT EFI_FILE **Root\r
);\r
\r
EFI_STATUS\r
-FileOpen(\r
+FileOpen (\r
IN EFI_FILE *File,\r
OUT EFI_FILE **NewHandle,\r
IN CHAR16 *FileName,\r
);\r
\r
EFI_STATUS\r
-FileClose(\r
+FileClose (\r
IN EFI_FILE *File\r
);\r
\r
);\r
\r
EFI_STATUS\r
-FileRead(\r
+FileRead (\r
IN EFI_FILE *File,\r
IN OUT UINTN *BufferSize,\r
OUT VOID *Buffer\r
);\r
\r
EFI_STATUS\r
-FileWrite(\r
+FileWrite (\r
IN EFI_FILE *File,\r
IN OUT UINTN *BufferSize,\r
IN VOID *Buffer\r
);\r
\r
EFI_STATUS\r
-FileGetPosition(\r
+FileGetPosition (\r
IN EFI_FILE *File,\r
OUT UINT64 *Position\r
);\r
\r
EFI_STATUS\r
-FileSetPosition(\r
+FileSetPosition (\r
IN EFI_FILE *File,\r
IN UINT64 Position\r
);\r
\r
EFI_STATUS\r
-FileGetInfo(\r
+FileGetInfo (\r
IN EFI_FILE *File,\r
IN EFI_GUID *InformationType,\r
IN OUT UINTN *BufferSize,\r
);\r
\r
EFI_STATUS\r
-FileSetInfo(\r
+FileSetInfo (\r
IN EFI_FILE *File,\r
IN EFI_GUID *InformationType,\r
IN UINTN BufferSize,\r
);\r
\r
EFI_STATUS\r
-FileFlush(\r
+FileFlush (\r
IN EFI_FILE *File\r
);\r
\r
-
#/** @file
# Support a Semi Host file system over a debuggers JTAG
#
**/
#include "BdsInternal.h"
+#include "BdsLinuxLoader.h"
#define ALIGN32_BELOW(addr) ALIGN_POINTER(addr - 32,32)
Start a Linux kernel from a Device Path
@param LinuxKernel Device Path to the Linux Kernel
- @param Parameters Linux kernel agruments
+ @param Parameters Linux kernel arguments
@param Fdt Device Path to the Flat Device Tree
@retval EFI_SUCCESS All drivers have been connected
Start a Linux kernel from a Device Path
@param LinuxKernel Device Path to the Linux Kernel
- @param Parameters Linux kernel agruments
+ @param Parameters Linux kernel arguments
@param Fdt Device Path to the Flat Device Tree
@retval EFI_SUCCESS All drivers have been connected
UINTN BootOrderSize;\r
UINTN Index;\r
CHAR16 BootVariableName[9];\r
- EFI_STATUS Status;\r
- EFI_INPUT_KEY Key;\r
+ EFI_STATUS Status;\r
+ EFI_INPUT_KEY Key;\r
\r
Size = sizeof(UINT16);\r
Timeout = (UINT16)PcdGet16 (PcdPlatformBootTimeOut);\r
Status = GenerateDeviceDescriptionName (HandleBuffer[Index], DeviceDescription);\r
ASSERT_EFI_ERROR (Status);\r
}\r
- UnicodeSPrint (SupportedDevice->Description,BOOT_DEVICE_DESCRIPTION_MAX,L"TFP on %s",DeviceDescription);\r
+ UnicodeSPrint (SupportedDevice->Description,BOOT_DEVICE_DESCRIPTION_MAX,L"TFTP on %s",DeviceDescription);\r
\r
SupportedDevice->DevicePathProtocol = DevicePathProtocol;\r
SupportedDevice->Support = &BdsLoadOptionSupportList[BDS_DEVICE_TFTP];\r
UINTN TranslationTableSize;\r
\r
// Get Virtual Memory Map from the Platform Library\r
- ArmPlatformGetVirtualMemoryMap(&MemoryTable);\r
+ ArmPlatformGetVirtualMemoryMap (&MemoryTable);\r
\r
//Note: Because we called PeiServicesInstallPeiMemory() before to call InitMmu() the MMU Page Table resides in\r
// DRAM (even at the top of DRAM as it is the first permanent memory allocation)\r
#/** @file
#
-# Component discription file for Timer module
+# Component description file for Timer module
#
# Copyright (c) 2009, Apple Inc. All rights reserved.<BR>
# This program and the accompanying materials