]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ARM Packages: Minor typo, mispellings and coding style changes
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 27 Sep 2012 13:39:40 +0000 (13:39 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 27 Sep 2012 13:39:40 +0000 (13:39 +0000)
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13752 6f19259b-4bc3-4df7-8a09-765794883524

ArmPkg/ArmPkg.dec
ArmPkg/Drivers/CpuDxe/Mmu.c
ArmPkg/Drivers/PL390Gic/PL390GicDxe.c
ArmPkg/Drivers/TimerDxe/TimerDxe.c
ArmPkg/Filesystem/SemihostFs/Arm/SemihostFs.h
ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
ArmPkg/Library/BdsLib/BdsLinuxLoader.c
ArmPlatformPkg/Bds/Bds.c
ArmPlatformPkg/Bds/BootOptionSupport.c
ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.c
Omap35xxPkg/TimerDxe/TimerDxe.inf

index 2a32dc3b6fb20bb9a3cd5cbf6656ca19dcf50d58..cd2578f05e6bfaf5af1b059d47a4c1980591c04d 100644 (file)
@@ -2,7 +2,7 @@
 # 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
index 7bed1f69c019b47d8063638d82def4a62b5a365e..dcc7b682c06bae25c2d9fd1a469879c525df0115 100644 (file)
@@ -749,14 +749,14 @@ ConvertSectionToPages (
 \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
@@ -765,7 +765,7 @@ ConvertSectionToPages (
   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
@@ -773,18 +773,18 @@ ConvertSectionToPages (
 \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
index aa68af916aa8117df3f28146657bb4842f72b18d..1a8239e73a5e9bc07f2f468cf334cc9a366ad3aa 100644 (file)
@@ -118,11 +118,11 @@ EnableInterruptSource (
     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;
index 6f09cb247f23002b3dfcb2e15b2ede40d3795e2f..50de7668eaa08b11dd6ab50ce843135a60b52c55 100644 (file)
@@ -137,7 +137,7 @@ TimerDriverSetTimerPeriod (
 {
   UINT64      TimerTicks;
   
-  // always disable the timer
+  // Always disable the timer
   ArmArchTimerDisableTimer ();
 
   if (TimerPeriod != 0) {
index 7907a11017109ad8fa0033d23d9599399f0832ad..a9b200b2a0fe977675551ad0680f27b77a38d59d 100644 (file)
 #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
@@ -54,7 +32,7 @@ FileOpen(
   );\r
 \r
 EFI_STATUS\r
-FileClose(\r
+FileClose (\r
   IN EFI_FILE *File\r
   );\r
 \r
@@ -64,33 +42,33 @@ FileDelete(
   );\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
@@ -98,7 +76,7 @@ FileGetInfo(
   );\r
 \r
 EFI_STATUS\r
-FileSetInfo(\r
+FileSetInfo (\r
   IN EFI_FILE *File,\r
   IN EFI_GUID *InformationType,\r
   IN UINTN    BufferSize,\r
@@ -106,7 +84,7 @@ FileSetInfo(
   );\r
 \r
 EFI_STATUS\r
-FileFlush(\r
+FileFlush (\r
   IN EFI_FILE *File\r
   );\r
 \r
index 608b36b5c72cd3b796421f38a324824d49ae7fb0..ca9d489756f7c17be903468671dab07a23271696 100644 (file)
@@ -1,4 +1,3 @@
-
 #/** @file
 #  Support a Semi Host file system over a debuggers JTAG
 #
index 5ef3c1cb8d0373563484ac5c7b2a92b4f8cdd971..a3ba58023adc8d8da4eef5564456baf9c2f4412c 100644 (file)
@@ -13,6 +13,7 @@
 **/
 
 #include "BdsInternal.h"
+#include "BdsLinuxLoader.h"
 
 #define ALIGN32_BELOW(addr)   ALIGN_POINTER(addr - 32,32)
 
@@ -122,7 +123,7 @@ Exit:
   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
@@ -193,7 +194,7 @@ BdsBootLinuxAtag (
   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
index 1adade402d273f7b0e02fdc8422b946c8c0cde02..11a76de90f139092d4ba046b34858c832b43e937 100644 (file)
@@ -307,8 +307,8 @@ StartDefaultBootOnTimeout (
   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
index e22280dc81f28febce0604a8ce437ba5a3e09870..fbdd5947d33dd1afad4d70293956cb7397966271 100644 (file)
@@ -778,7 +778,7 @@ BdsLoadOptionTftpList (
         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
index e5dd29c7e1e50e4ecf5afe5d163bb70530542fc8..fa24c45ea8e3ff8b7f2ffaa18454e051b9f3d9a2 100755 (executable)
@@ -35,7 +35,7 @@ InitMmu (
   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
index eefcc49b17cf1ba281bda74d16c2e8c910ccb59b..6cfab775709c9a968316b0418e39d4519090c765 100644 (file)
@@ -1,6 +1,6 @@
 #/** @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