From 3402aac7d985bf8a9f9d3c639f3fe93609380513 Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Tue, 19 Aug 2014 13:29:52 +0000 Subject: ARM Packages: Removed trailing spaces Trailing spaces create issue/warning when generating/applying patches. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15833 6f19259b-4bc3-4df7-8a09-765794883524 --- BeagleBoardPkg/Bds/Bds.inf | 18 ++-- BeagleBoardPkg/Bds/BdsEntry.c | 66 +++++++-------- BeagleBoardPkg/Bds/BdsEntry.h | 2 +- BeagleBoardPkg/Bds/FirmwareVolume.c | 46 +++++----- BeagleBoardPkg/BeagleBoardPkg.dsc | 98 +++++++++++----------- BeagleBoardPkg/BeagleBoardPkg.fdf | 36 ++++---- .../Debugger_scripts/rvi_boot_from_ram.inc | 2 +- BeagleBoardPkg/Debugger_scripts/rvi_hw_setup.inc | 2 +- .../Debugger_scripts/rvi_load_symbols.inc | 2 +- .../Debugger_scripts/rvi_symbols_macros.inc | 64 +++++++------- .../Debugger_scripts/rvi_unload_symbols.inc | 2 +- BeagleBoardPkg/Include/BeagleBoard.h | 16 ++-- .../Library/BeagleBoardLib/BeagleBoard.c | 18 ++-- .../Library/BeagleBoardLib/BeagleBoardHelper.S | 14 ++-- .../Library/BeagleBoardLib/BeagleBoardHelper.asm | 14 ++-- .../Library/BeagleBoardLib/BeagleBoardLib.inf | 14 ++-- .../Library/BeagleBoardLib/BeagleBoardMem.c | 14 ++-- BeagleBoardPkg/Library/BeagleBoardLib/Clock.c | 2 +- .../Library/BeagleBoardLib/PadConfiguration.c | 2 +- BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.c | 32 +++---- BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.inf | 6 +- BeagleBoardPkg/Library/GdbSerialLib/GdbSerialLib.c | 16 ++-- .../Library/GdbSerialLib/GdbSerialLib.inf | 8 +- .../Library/ResetSystemLib/ResetSystemLib.c | 10 +-- .../Library/ResetSystemLib/ResetSystemLib.inf | 2 +- BeagleBoardPkg/Sec/Arm/ModuleEntryPoint.S | 18 ++-- BeagleBoardPkg/Sec/Arm/ModuleEntryPoint.asm | 34 ++++---- BeagleBoardPkg/Sec/Cache.c | 8 +- BeagleBoardPkg/Sec/Clock.c | 2 +- BeagleBoardPkg/Sec/LzmaDecompress.h | 22 ++--- BeagleBoardPkg/Sec/PadConfiguration.c | 2 +- BeagleBoardPkg/Sec/Sec.c | 10 +-- BeagleBoardPkg/Sec/Sec.inf | 14 ++-- BeagleBoardPkg/Tools/generate_image.c | 64 +++++++------- BeagleBoardPkg/Tools/replace.c | 16 ++-- 35 files changed, 348 insertions(+), 348 deletions(-) (limited to 'BeagleBoardPkg') diff --git a/BeagleBoardPkg/Bds/Bds.inf b/BeagleBoardPkg/Bds/Bds.inf index 093559c7cb..2b20a09549 100644 --- a/BeagleBoardPkg/Bds/Bds.inf +++ b/BeagleBoardPkg/Bds/Bds.inf @@ -1,18 +1,18 @@ #/** @file -# +# # Component description file for Bds module -# +# # Copyright (c) 2009, Apple Inc. All rights reserved.
# # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full text of the license may be found at # http://opensource.org/licenses/bsd-license.php -# +# # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -# +# #**/ [Defines] @@ -49,13 +49,13 @@ UefiDriverEntryPoint [Guids] - + [Protocols] - gEfiBdsArchProtocolGuid - gEfiSimpleTextInProtocolGuid - gEfiSimpleTextOutProtocolGuid - gEfiSerialIoProtocolGuid + gEfiBdsArchProtocolGuid + gEfiSimpleTextInProtocolGuid + gEfiSimpleTextOutProtocolGuid + gEfiSerialIoProtocolGuid gEfiDevicePathProtocolGuid gEfiSimpleFileSystemProtocolGuid gEfiUsbIoProtocolGuid diff --git a/BeagleBoardPkg/Bds/BdsEntry.c b/BeagleBoardPkg/Bds/BdsEntry.c index f65c9eb8b9..f2f1ae3983 100644 --- a/BeagleBoardPkg/Bds/BdsEntry.c +++ b/BeagleBoardPkg/Bds/BdsEntry.c @@ -1,13 +1,13 @@ /** @file - The entry of the embedded BDS. This BDS does not follow the Boot Manager requirements - of the UEFI specification as it is designed to implement an embedded systmes + The entry of the embedded BDS. This BDS does not follow the Boot Manager requirements + of the UEFI specification as it is designed to implement an embedded systmes propriatary boot scheme. - This template assume a DXE driver produces a SerialIo protocol not using the EFI + This template assume a DXE driver produces a SerialIo protocol not using the EFI driver module and it will attempt to connect a console on top of this. Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
- + This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -28,22 +28,22 @@ EFI_BDS_ARCH_PROTOCOL gBdsProtocol = { }; - - + + /** - This function uses policy data from the platform to determine what operating - system or system utility should be loaded and invoked. This function call - also optionally make the use of user input to determine the operating system - or system utility to be loaded and invoked. When the DXE Core has dispatched - all the drivers on the dispatch queue, this function is called. This - function will attempt to connect the boot devices required to load and invoke - the selected operating system or system utility. During this process, - additional firmware volumes may be discovered that may contain addition DXE - drivers that can be dispatched by the DXE Core. If a boot device cannot be - fully connected, this function calls the DXE Service Dispatch() to allow the - DXE drivers from any newly discovered firmware volumes to be dispatched. - Then the boot device connection can be attempted again. If the same boot - device connection operation fails twice in a row, then that boot device has + This function uses policy data from the platform to determine what operating + system or system utility should be loaded and invoked. This function call + also optionally make the use of user input to determine the operating system + or system utility to be loaded and invoked. When the DXE Core has dispatched + all the drivers on the dispatch queue, this function is called. This + function will attempt to connect the boot devices required to load and invoke + the selected operating system or system utility. During this process, + additional firmware volumes may be discovered that may contain addition DXE + drivers that can be dispatched by the DXE Core. If a boot device cannot be + fully connected, this function calls the DXE Service Dispatch() to allow the + DXE drivers from any newly discovered firmware volumes to be dispatched. + Then the boot device connection can be attempted again. If the same boot + device connection operation fails twice in a row, then that boot device has failed, and should be skipped. This function should never return. @param This The EFI_BDS_ARCH_PROTOCOL instance. @@ -71,7 +71,7 @@ BdsEntry ( UINTN Index; EFI_DEVICE_PATH_PROTOCOL *LoadImageDevicePath; EFI_DEVICE_PATH_PROTOCOL *FileSystemDevicePath; - + PERF_END (NULL, "DXE", NULL, 0); PERF_START (NULL, "BDS", NULL, 0); @@ -82,12 +82,12 @@ BdsEntry ( Size = 0x100; gST->FirmwareVendor = AllocateRuntimePool (Size); ASSERT (gST->FirmwareVendor != NULL); - + UnicodeSPrint (gST->FirmwareVendor, Size, L"BeagleBoard EFI %a %a", __DATE__, __TIME__); // // Now we need to setup the EFI System Table with information about the console devices. - // This code is normally in the console spliter driver on platforms that support multiple + // This code is normally in the console spliter driver on platforms that support multiple // consoles at the same time // Status = gBS->LocateHandleBuffer (ByProtocol, &gEfiSimpleTextOutProtocolGuid, NULL, &NoHandles, &Buffer); @@ -97,15 +97,15 @@ BdsEntry ( gST->StandardErrorHandle = Buffer[0]; Status = gBS->HandleProtocol (Buffer[0], &gEfiSimpleTextOutProtocolGuid, (VOID **)&gST->ConOut); ASSERT_EFI_ERROR (Status); - + gST->StdErr = gST->ConOut; - + gST->ConOut->OutputString (gST->ConOut, L"BDS: Console Started!!!!\n\r"); FreePool (Buffer); - + gConsolePresent = TRUE; - } - + } + Status = gBS->LocateHandleBuffer (ByProtocol, &gEfiSimpleTextInProtocolGuid, NULL, &NoHandles, &Buffer); if (!EFI_ERROR (Status)) { @@ -113,12 +113,12 @@ BdsEntry ( gST->ConsoleInHandle = Buffer[0]; Status = gBS->HandleProtocol (Buffer[0], &gEfiSimpleTextInProtocolGuid, (VOID **)&gST->ConIn); ASSERT_EFI_ERROR (Status); - + FreePool (Buffer); } // - // We now have EFI Consoles up and running. Print () will work now. DEBUG () and ASSERT () worked + // We now have EFI Consoles up and running. Print () will work now. DEBUG () and ASSERT () worked // prior to this point as they were configured to use a more primative output scheme. // @@ -138,7 +138,7 @@ BdsEntry ( if (EFI_ERROR (Status)) { break; } - + if (HandleCount == OldHandleCount) { break; } @@ -186,9 +186,9 @@ BdsEntry ( } } } - + // - // Normal UEFI behavior is to process Globally Defined Variables as defined in Chapter 3 + // Normal UEFI behavior is to process Globally Defined Variables as defined in Chapter 3 // (Boot Manager) of the UEFI specification. For this embedded system we don't do this. // @@ -208,7 +208,7 @@ BdsEntry ( } // - // EFI does not define the behaviour if all boot attemps fail and the last one returns. + // EFI does not define the behaviour if all boot attemps fail and the last one returns. // So we make a policy choice to reset the system since this BDS does not have a UI. // gRT->ResetSystem (EfiResetShutdown, Status, 0, NULL); diff --git a/BeagleBoardPkg/Bds/BdsEntry.h b/BeagleBoardPkg/Bds/BdsEntry.h index 149acbefc5..646f7b276d 100644 --- a/BeagleBoardPkg/Bds/BdsEntry.h +++ b/BeagleBoardPkg/Bds/BdsEntry.h @@ -45,7 +45,7 @@ EFI_STATUS LoadPeCoffSectionFromFv ( - IN EFI_HANDLE FvHandle, + IN EFI_HANDLE FvHandle, IN EFI_GUID *NameGuid ); diff --git a/BeagleBoardPkg/Bds/FirmwareVolume.c b/BeagleBoardPkg/Bds/FirmwareVolume.c index 142095fa66..31e1c5100e 100644 --- a/BeagleBoardPkg/Bds/FirmwareVolume.c +++ b/BeagleBoardPkg/Bds/FirmwareVolume.c @@ -1,14 +1,14 @@ /** @file - The entry of the embedded BDS. This BDS does not follow the Boot Manager requirements - of the UEFI specification as it is designed to implement an embedded systmes + The entry of the embedded BDS. This BDS does not follow the Boot Manager requirements + of the UEFI specification as it is designed to implement an embedded systmes propriatary boot scheme. - This template assume a DXE driver produces a SerialIo protocol not using the EFI + This template assume a DXE driver produces a SerialIo protocol not using the EFI driver module and it will attempt to connect a console on top of this. - + Copyright (c) 2009, Apple Inc. All rights reserved.
- + This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -42,14 +42,14 @@ FindApplicationMatchingUiSection ( UINTN UiStringLen; CHAR16 *UiSection; UINT32 Authentication; - - + + UiStringLen = 0; if (UiString != NULL) { DEBUG ((DEBUG_ERROR, "UiString %s\n", UiString)); UiStringLen = StrLen (UiString); } - + Status = gBS->LocateHandleBuffer (ByProtocol, &gEfiFirmwareVolume2ProtocolGuid, NULL, &NoHandles, &Buffer); if (!EFI_ERROR (Status)) { for (Index = 0; Index < NoHandles; Index++) { @@ -58,9 +58,9 @@ FindApplicationMatchingUiSection ( Key = AllocatePool (Fv->KeySize); ASSERT (Key != NULL); ZeroMem (Key, Fv->KeySize); - + FileType = EFI_FV_FILETYPE_APPLICATION; - + do { NextStatus = Fv->GetNextFile (Fv, Key, &FileType, NameGuid, &Attributes, &Size); if (!EFI_ERROR (NextStatus)) { @@ -72,12 +72,12 @@ FindApplicationMatchingUiSection ( FreePool (Key); return Status; } - + UiSection = NULL; Status = Fv->ReadSection ( - Fv, - NameGuid, - EFI_SECTION_USER_INTERFACE, + Fv, + NameGuid, + EFI_SECTION_USER_INTERFACE, 0, (VOID **)&UiSection, &Size, @@ -86,7 +86,7 @@ FindApplicationMatchingUiSection ( if (!EFI_ERROR (Status)) { if (StrnCmp (UiString, UiSection, UiStringLen) == 0) { // - // We found a UiString match. + // We found a UiString match. // *FvHandle = Buffer[Index]; FreePool (Key); @@ -97,11 +97,11 @@ FindApplicationMatchingUiSection ( } } } while (!EFI_ERROR (NextStatus)); - + FreePool (Key); } } - + FreePool (Buffer); } @@ -114,14 +114,14 @@ FvFileDevicePath ( IN EFI_HANDLE FvHandle, IN EFI_GUID *NameGuid ) -{ +{ EFI_DEVICE_PATH_PROTOCOL *DevicePath; MEDIA_FW_VOL_FILEPATH_DEVICE_PATH NewNode; DevicePath = DevicePathFromHandle (FvHandle); EfiInitializeFwVolDevicepathNode (&NewNode, NameGuid); - + return AppendDevicePathNode (DevicePath, (EFI_DEVICE_PATH_PROTOCOL *)&NewNode); } @@ -129,7 +129,7 @@ FvFileDevicePath ( EFI_STATUS LoadPeCoffSectionFromFv ( - IN EFI_HANDLE FvHandle, + IN EFI_HANDLE FvHandle, IN EFI_GUID *NameGuid ) { @@ -138,13 +138,13 @@ LoadPeCoffSectionFromFv ( EFI_HANDLE ImageHandle; DevicePath = FvFileDevicePath (FvHandle, NameGuid); - + Status = gBS->LoadImage (TRUE, gImageHandle, DevicePath, NULL, 0, &ImageHandle); if (!EFI_ERROR (Status)) { PERF_END (NULL, "BDS", NULL, 0); Status = gBS->StartImage (ImageHandle, NULL, NULL); } - + return Status; } - + diff --git a/BeagleBoardPkg/BeagleBoardPkg.dsc b/BeagleBoardPkg/BeagleBoardPkg.dsc index caf6182c4b..fbab13fc74 100644 --- a/BeagleBoardPkg/BeagleBoardPkg.dsc +++ b/BeagleBoardPkg/BeagleBoardPkg.dsc @@ -36,7 +36,7 @@ ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexA8Lib/ArmCortexA8Lib.inf ArmPlatformStackLib|ArmPlatformPkg/Library/ArmPlatformStackLib/ArmPlatformStackLib.inf ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf - + HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf @@ -51,23 +51,23 @@ DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf - + BaseLib|MdePkg/Library/BaseLib/BaseLib.inf BaseMemoryLib|ArmPkg/Library/BaseMemoryLibStm/BaseMemoryLibStm.inf EfiResetSystemLib|BeagleBoardPkg/Library/ResetSystemLib/ResetSystemLib.inf - + PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf - + EfiFileLib|EmbeddedPkg/Library/EfiFileLib/EfiFileLib.inf - - + + PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf - + # - # Uncomment (and comment out the next line) For RealView Debugger. The Standard IO window + # Uncomment (and comment out the next line) For RealView Debugger. The Standard IO window # in the debugger will show load and unload commands for symbols. You can cut and paste this # into the command window to load symbols. We should be able to use a script to do this, but # the version of RVD I have does not support scipts accessing system memory. @@ -76,20 +76,20 @@ PeCoffExtraActionLib|ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf # PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf - + CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf CpuExceptionHandlerLib|MdeModulePkg/Library/CpuExceptionHandlerLibNull/CpuExceptionHandlerLibNull.inf PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf - + SerialPortLib|Omap35xxPkg/Library/SerialPortLib/SerialPortLib.inf - SerialPortExtLib|EmbeddedPkg/Library/TemplateSerialPortExtLib/TemplateSerialPortExtLib.inf + SerialPortExtLib|EmbeddedPkg/Library/TemplateSerialPortExtLib/TemplateSerialPortExtLib.inf SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf - + RealTimeClockLib|Omap35xxPkg/Library/RealTimeClockLib/RealTimeClockLib.inf IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf - + MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf UefiLib|MdePkg/Library/UefiLib/UefiLib.inf HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf @@ -107,12 +107,12 @@ PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf - + UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf - TimerLib|Omap35xxPkg/Library/Omap35xxTimerLib/Omap35xxTimerLib.inf + TimerLib|Omap35xxPkg/Library/Omap35xxTimerLib/Omap35xxTimerLib.inf OmapLib|Omap35xxPkg/Library/OmapLib/OmapLib.inf OmapDmaLib|Omap35xxPkg/Library/OmapDmaLib/OmapDmaLib.inf DebugAgentTimerLib|Omap35xxPkg/Library/DebugAgentTimerLib/DebugAgentTimerLib.inf @@ -129,7 +129,7 @@ [LibraryClasses.common.SEC] ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7LibPrePi.inf ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf - + PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf ReportStatusCodeLib|IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf @@ -137,18 +137,18 @@ LzmaDecompressLib|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf - + HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf PlatformPeiLib|ArmPlatformPkg/PlatformPei/PlatformPeiLib.inf MemoryInitPeiLib|ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.inf - + # 1/123 faster than Stm or Vstm version BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf - # Uncomment to turn on GDB stub in SEC. + # Uncomment to turn on GDB stub in SEC. #DebugAgentLib|EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.inf [LibraryClasses.common.PEI_CORE] @@ -167,7 +167,7 @@ PeCoffLib|EmbeddedPkg/Library/DxeHobPeCoffLib/DxeHobPeCoffLib.inf PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf - + [LibraryClasses.common.DXE_DRIVER] ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf @@ -225,11 +225,11 @@ gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|TRUE gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|TRUE gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|TRUE - + # # Control what commands are supported from the UI # Turn these on and off to add features or save size - # + # gEmbeddedTokenSpaceGuid.PcdEmbeddedMacBoot|TRUE gEmbeddedTokenSpaceGuid.PcdEmbeddedDirCmd|TRUE gEmbeddedTokenSpaceGuid.PcdEmbeddedHobCmd|TRUE @@ -239,10 +239,10 @@ gEmbeddedTokenSpaceGuid.PcdEmbeddedScriptCmd|FALSE gEmbeddedTokenSpaceGuid.PcdCacheEnable|TRUE - + # Use the Vector Table location in CpuDxe. We will not copy the Vector Table at PcdCpuVectorBaseAddress gArmTokenSpaceGuid.PcdRelocateVectorTable|FALSE - + gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE gArmTokenSpaceGuid.PcdCpuDxeProduceDebugSupport|FALSE @@ -254,7 +254,7 @@ [PcdsFixedAtBuild.common] gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"Beagle Board" - + gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"BeagleEdk2" gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000 @@ -300,12 +300,12 @@ gEmbeddedTokenSpaceGuid.PcdEmbeddedAutomaticBootCommand|"" gEmbeddedTokenSpaceGuid.PcdEmbeddedDefaultTextColor|0x07 gEmbeddedTokenSpaceGuid.PcdEmbeddedMemVariableStoreSize|0x10000 - + # # Optional feature to help prevent EFI memory map fragments # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob -# Values are in EFI Pages (4K). DXE Core will make sure that -# at least this much of each type of memory can be allocated +# Values are in EFI Pages (4K). DXE Core will make sure that +# at least this much of each type of memory can be allocated # from a single memory range. This way you only end up with # maximum of two fragements for each type in the memory map # (the memory used, and the free memory that was prereserved @@ -326,23 +326,23 @@ # Beagle board Specific PCDs # gArmTokenSpaceGuid.PcdVFPEnabled|1 - + gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000 gArmTokenSpaceGuid.PcdSystemMemorySize|0x08000000 # Size of the region used by UEFI in permanent memory (Reserved 16MB) gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x01000000 - + # Size of the region reserved for fixed address allocations (Reserved 32MB) gArmTokenSpaceGuid.PcdArmLinuxKernelMaxOffset|0x02000000 gArmTokenSpaceGuid.PcdCpuVectorBaseAddress|0x80008000 gArmTokenSpaceGuid.PcdCpuResetAddress|0x80008000 - + gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterPeriodInNanoseconds|77 gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|13000000 - + # # ARM Pcds # @@ -361,8 +361,8 @@ # # ARM OS Loader # - # BeagleBoard machine type (OMAP3_BEAGLE = 1546) required for ARM Linux: - gArmTokenSpaceGuid.PcdArmMachineType|1546 + # BeagleBoard machine type (OMAP3_BEAGLE = 1546) required for ARM Linux: + gArmTokenSpaceGuid.PcdArmMachineType|1546 ################################################################################ # @@ -375,7 +375,7 @@ # SEC # ArmPlatformPkg/PrePi/PeiUniCore.inf - + # # DXE # @@ -384,30 +384,30 @@ PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf # NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf - NULL|EmbeddedPkg/Library/LzmaHobCustomDecompressLib/LzmaHobCustomDecompressLib.inf + NULL|EmbeddedPkg/Library/LzmaHobCustomDecompressLib/LzmaHobCustomDecompressLib.inf } ArmPkg/Drivers/CpuDxe/CpuDxe.inf - + MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf - + MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf - MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf + MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf EmbeddedPkg/SerialDxe/SerialDxe.inf - MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf + MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf # -# This version uses semi-hosting console +# This version uses semi-hosting console # EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf { # # SerialPortLib|ArmPkg/Library/SemiHostingSerialPortLib/SemiHostingSerialPortLib.inf # } - + EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf @@ -416,7 +416,7 @@ # Semi-hosting filesystem # ArmPkg/Filesystem/SemihostFs/SemihostFs.inf - + # # FAT filesystem + GPT/MBR partitioning # @@ -447,34 +447,34 @@ # EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf Omap35xxPkg/MmcHostDxe/MmcHostDxe.inf - + # # I2C # Omap35xxPkg/SmbusDxe/Smbus.inf - + # # SoC Drivers # Omap35xxPkg/Gpio/Gpio.inf Omap35xxPkg/InterruptDxe/InterruptDxe.inf - Omap35xxPkg/TimerDxe/TimerDxe.inf + Omap35xxPkg/TimerDxe/TimerDxe.inf Omap35xxPkg/LcdGraphicsOutputDxe/LcdGraphicsOutputDxe.inf # # Power IC # Omap35xxPkg/TPS65950Dxe/TPS65950.inf - + # # Bds # MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf - ArmPlatformPkg/Bds/Bds.inf + ArmPlatformPkg/Bds/Bds.inf # # Example Application - # + # MdeModulePkg/Application/HelloWorld/HelloWorld.inf diff --git a/BeagleBoardPkg/BeagleBoardPkg.fdf b/BeagleBoardPkg/BeagleBoardPkg.fdf index 5b3573d9d7..a2a5fe725e 100644 --- a/BeagleBoardPkg/BeagleBoardPkg.fdf +++ b/BeagleBoardPkg/BeagleBoardPkg.fdf @@ -83,37 +83,37 @@ READ_STATUS = TRUE READ_LOCK_CAP = TRUE READ_LOCK_STATUS = TRUE - INF MdeModulePkg/Core/Dxe/DxeMain.inf + INF MdeModulePkg/Core/Dxe/DxeMain.inf # - # PI DXE Drivers producing Architectural Protocols (EFI Services) + # PI DXE Drivers producing Architectural Protocols (EFI Services) # INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf - + INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf INF MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf INF EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf - + INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf - INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf + INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf INF EmbeddedPkg/SerialDxe/SerialDxe.inf - INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf + INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf - + !if $(TARGET) == RELEASE # # Semi-hosting filesystem # INF ArmPkg/Filesystem/SemihostFs/SemihostFs.inf !endif - + # # Nand Flash # @@ -124,18 +124,18 @@ READ_LOCK_STATUS = TRUE # INF EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf INF Omap35xxPkg/MmcHostDxe/MmcHostDxe.inf - + # # I2C # INF Omap35xxPkg/SmbusDxe/Smbus.inf - + # # SoC Drivers # INF Omap35xxPkg/Gpio/Gpio.inf INF Omap35xxPkg/InterruptDxe/InterruptDxe.inf - INF Omap35xxPkg/TimerDxe/TimerDxe.inf + INF Omap35xxPkg/TimerDxe/TimerDxe.inf INF Omap35xxPkg/LcdGraphicsOutputDxe/LcdGraphicsOutputDxe.inf # @@ -162,9 +162,9 @@ READ_LOCK_STATUS = TRUE INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf # - # UEFI application (Shell Embedded Boot Loader) - # - INF ShellBinPkg/UefiShell/UefiShell.inf + # UEFI application (Shell Embedded Boot Loader) + # + INF ShellBinPkg/UefiShell/UefiShell.inf # # Bds @@ -212,7 +212,7 @@ READ_LOCK_STATUS = TRUE ############################################################################ -# Example of a DXE_DRIVER FFS file with a Checksum encapsulation section # +# Example of a DXE_DRIVER FFS file with a Checksum encapsulation section # ############################################################################ # #[Rule.Common.DXE_DRIVER] @@ -237,14 +237,14 @@ READ_LOCK_STATUS = TRUE [Rule.Common.PEI_CORE] FILE PEI_CORE = $(NAMED_GUID) { TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi - UI STRING ="$(MODULE_NAME)" Optional + UI STRING ="$(MODULE_NAME)" Optional } [Rule.Common.PEIM] FILE PEIM = $(NAMED_GUID) { PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi - UI STRING="$(MODULE_NAME)" Optional + UI STRING="$(MODULE_NAME)" Optional } [Rule.Common.PEIM.TIANOCOMPRESSED] @@ -286,7 +286,7 @@ READ_LOCK_STATUS = TRUE [Rule.Common.UEFI_APPLICATION] FILE APPLICATION = $(NAMED_GUID) { - UI STRING ="$(MODULE_NAME)" Optional + UI STRING ="$(MODULE_NAME)" Optional PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi } diff --git a/BeagleBoardPkg/Debugger_scripts/rvi_boot_from_ram.inc b/BeagleBoardPkg/Debugger_scripts/rvi_boot_from_ram.inc index c691af69d7..a4e96747f8 100644 --- a/BeagleBoardPkg/Debugger_scripts/rvi_boot_from_ram.inc +++ b/BeagleBoardPkg/Debugger_scripts/rvi_boot_from_ram.inc @@ -1,6 +1,6 @@ // // Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
-// +// // This program and the accompanying materials // are licensed and made available under the terms and conditions of the BSD License // which accompanies this distribution. The full text of the license may be found at diff --git a/BeagleBoardPkg/Debugger_scripts/rvi_hw_setup.inc b/BeagleBoardPkg/Debugger_scripts/rvi_hw_setup.inc index f7c211f15a..dbce4dfdbd 100644 --- a/BeagleBoardPkg/Debugger_scripts/rvi_hw_setup.inc +++ b/BeagleBoardPkg/Debugger_scripts/rvi_hw_setup.inc @@ -1,6 +1,6 @@ // // Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
-// +// // This program and the accompanying materials // are licensed and made available under the terms and conditions of the BSD License // which accompanies this distribution. The full text of the license may be found at diff --git a/BeagleBoardPkg/Debugger_scripts/rvi_load_symbols.inc b/BeagleBoardPkg/Debugger_scripts/rvi_load_symbols.inc index e093ccbcb2..33e3eacac4 100644 --- a/BeagleBoardPkg/Debugger_scripts/rvi_load_symbols.inc +++ b/BeagleBoardPkg/Debugger_scripts/rvi_load_symbols.inc @@ -1,6 +1,6 @@ // // Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
-// +// // This program and the accompanying materials // are licensed and made available under the terms and conditions of the BSD License // which accompanies this distribution. The full text of the license may be found at diff --git a/BeagleBoardPkg/Debugger_scripts/rvi_symbols_macros.inc b/BeagleBoardPkg/Debugger_scripts/rvi_symbols_macros.inc index 97d465eaf2..0fc2c64b1a 100755 --- a/BeagleBoardPkg/Debugger_scripts/rvi_symbols_macros.inc +++ b/BeagleBoardPkg/Debugger_scripts/rvi_symbols_macros.inc @@ -1,6 +1,6 @@ // // Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
-// +// // This program and the accompanying materials // are licensed and made available under the terms and conditions of the BSD License // which accompanies this distribution. The full text of the license may be found at @@ -23,20 +23,20 @@ define /R unsigned char * find_system_table(mem_start, mem_size) unsigned long mem_size; { unsigned char *mem_ptr; - + mem_ptr = mem_start + mem_size; - + do { mem_ptr -= 0x400000; // 4 MB - + if (strncmp(mem_ptr, "IBI SYST", 8) == 0) { return *(unsigned long *)(mem_ptr + 8); // EfiSystemTableBase - } - + } + } while (mem_ptr > mem_start); - + return 0; } . @@ -48,7 +48,7 @@ define /R unsigned char * find_debug_info_table_header(system_table) unsigned char *configuration_table; unsigned long index; unsigned char debug_table_guid[16]; - + // Fill in the debug table's guid debug_table_guid[ 0] = 0x77; debug_table_guid[ 1] = 0x2E; @@ -66,20 +66,20 @@ define /R unsigned char * find_debug_info_table_header(system_table) debug_table_guid[13] = 0xD9; debug_table_guid[14] = 0x5E; debug_table_guid[15] = 0x8B; - + configuration_table_entries = *(unsigned long *)(system_table + 64); configuration_table = *(unsigned long *)(system_table + 68); - + for (index = 0; index < configuration_table_entries; index++) { if (compare_guid(configuration_table, debug_table_guid) == 0) { return *(unsigned long *)(configuration_table + 16); } - + configuration_table += 20; } - + return 0; } . @@ -94,7 +94,7 @@ define /R int valid_pe_header(header) { return 1; } - + return 0; } . @@ -103,9 +103,9 @@ define /R unsigned long pe_headersize(header) unsigned char *header; { unsigned long *size; - + size = header + 0x00AC; - + return *size; } . @@ -115,15 +115,15 @@ define /R unsigned char *pe_filename(header) { unsigned long *debugOffset; unsigned char *stringOffset; - + if (valid_pe_header(header)) { debugOffset = header + 0x0128; stringOffset = header + *debugOffset + 0x002C; - + return stringOffset; } - + return 0; } . @@ -141,7 +141,7 @@ define /R int char_is_valid(c) define /R write_symbols_file(filename, mem_start, mem_size) unsigned char *filename; unsigned char *mem_start; - unsigned long mem_size; + unsigned long mem_size; { unsigned char *system_table; unsigned char *debug_info_table_header; @@ -154,40 +154,40 @@ define /R write_symbols_file(filename, mem_start, mem_size) unsigned char *debug_filename; unsigned long header_size; int status; - + system_table = find_system_table(mem_start, mem_size); if (system_table == 0) { return; } - + status = fopen(88, filename, "w"); - + debug_info_table_header = find_debug_info_table_header(system_table); - + debug_info_table = *(unsigned long *)(debug_info_table_header + 8); debug_info_table_size = *(unsigned long *)(debug_info_table_header + 4); - + for (index = 0; index < (debug_info_table_size * 4); index += 4) { - debug_image_info = *(unsigned long *)(debug_info_table + index); - + debug_image_info = *(unsigned long *)(debug_info_table + index); + if (debug_image_info == 0) { break; } - + loaded_image_protocol = *(unsigned long *)(debug_image_info + 4); - + image_base = *(unsigned long *)(loaded_image_protocol + 32); - + debug_filename = pe_filename(image_base); header_size = pe_headersize(image_base); - + $fprintf 88, "%s 0x%08x\n", debug_filename, image_base + header_size$; } - - + + fclose(88); } . diff --git a/BeagleBoardPkg/Debugger_scripts/rvi_unload_symbols.inc b/BeagleBoardPkg/Debugger_scripts/rvi_unload_symbols.inc index f85f442c9c..b00a1322d4 100755 --- a/BeagleBoardPkg/Debugger_scripts/rvi_unload_symbols.inc +++ b/BeagleBoardPkg/Debugger_scripts/rvi_unload_symbols.inc @@ -1,6 +1,6 @@ // // Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
-// +// // This program and the accompanying materials // are licensed and made available under the terms and conditions of the BSD License // which accompanies this distribution. The full text of the license may be found at diff --git a/BeagleBoardPkg/Include/BeagleBoard.h b/BeagleBoardPkg/Include/BeagleBoard.h index cdd7242331..cae398a984 100755 --- a/BeagleBoardPkg/Include/BeagleBoard.h +++ b/BeagleBoardPkg/Include/BeagleBoard.h @@ -2,14 +2,14 @@ * Header defining the BeagleBoard constants (Base addresses, sizes, flags) * * Copyright (c) 2011, ARM Limited. All rights reserved. -* -* This program and the accompanying materials -* are licensed and made available under the terms and conditions of the BSD License -* which accompanies this distribution. The full text of the license may be found at -* http://opensource.org/licenses/bsd-license.php * -* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +* This program and the accompanying materials +* are licensed and made available under the terms and conditions of the BSD License +* which accompanies this distribution. The full text of the license may be found at +* http://opensource.org/licenses/bsd-license.php +* +* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. * **/ @@ -176,4 +176,4 @@ typedef enum { REVISION_AB, } BEAGLEBOARD_REVISION; -#endif +#endif diff --git a/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoard.c b/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoard.c index 4e58f36042..dbbe68a7a0 100755 --- a/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoard.c +++ b/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoard.c @@ -1,14 +1,14 @@ /** @file * * Copyright (c) 2011-2012, ARM Limited. All rights reserved. -* -* This program and the accompanying materials -* are licensed and made available under the terms and conditions of the BSD License -* which accompanies this distribution. The full text of the license may be found at -* http://opensource.org/licenses/bsd-license.php * -* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +* This program and the accompanying materials +* are licensed and made available under the terms and conditions of the BSD License +* which accompanies this distribution. The full text of the license may be found at +* http://opensource.org/licenses/bsd-license.php +* +* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. * **/ @@ -47,10 +47,10 @@ BeagleBoardGetRevision ( OldPinDir = MmioRead32 (GPIO6_BASE + GPIO_OE); MmioWrite32(GPIO6_BASE + GPIO_OE, (OldPinDir | BIT11 | BIT12 | BIT13)); Revision = MmioRead32 (GPIO6_BASE + GPIO_DATAIN); - + // Restore I/O settings MmioWrite32 (GPIO6_BASE + GPIO_OE, OldPinDir); - + return (BEAGLEBOARD_REVISION)((Revision >> 11) & 0x7); } diff --git a/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardHelper.S b/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardHelper.S index 0d50cbd45a..8e02088efc 100644 --- a/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardHelper.S +++ b/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardHelper.S @@ -1,13 +1,13 @@ # # Copyright (c) 2012-2013, ARM Limited. All rights reserved. -# -# This program and the accompanying materials -# are licensed and made available under the terms and conditions of the BSD License -# which accompanies this distribution. The full text of the license may be found at +# +# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BSD License +# which accompanies this distribution. The full text of the license may be found at # http://opensource.org/licenses/bsd-license.php # -# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. # # @@ -44,4 +44,4 @@ ASM_PFX(ArmPlatformGetPrimaryCoreMpId): // always the MPIDR of the calling CPU. b ASM_PFX(ArmReadMpidr) -ASM_FUNCTION_REMOVE_IF_UNREFERENCED +ASM_FUNCTION_REMOVE_IF_UNREFERENCED diff --git a/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardHelper.asm b/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardHelper.asm index b850d9858e..39a2a536ad 100644 --- a/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardHelper.asm +++ b/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardHelper.asm @@ -1,13 +1,13 @@ // // Copyright (c) 2012-2013, ARM Limited. All rights reserved. -// -// This program and the accompanying materials -// are licensed and made available under the terms and conditions of the BSD License -// which accompanies this distribution. The full text of the license may be found at -// http://opensource.org/licenses/bsd-license.php // -// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +// This program and the accompanying materials +// are licensed and made available under the terms and conditions of the BSD License +// which accompanies this distribution. The full text of the license may be found at +// http://opensource.org/licenses/bsd-license.php +// +// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. // // diff --git a/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardLib.inf b/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardLib.inf index f3242729b7..b1139a477d 100755 --- a/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardLib.inf +++ b/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardLib.inf @@ -1,13 +1,13 @@ #/* @file # Copyright (c) 2011-2013, ARM Limited. All rights reserved. -# -# This program and the accompanying materials -# are licensed and made available under the terms and conditions of the BSD License -# which accompanies this distribution. The full text of the license may be found at -# http://opensource.org/licenses/bsd-license.php # -# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BSD License +# which accompanies this distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. # #*/ diff --git a/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardMem.c b/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardMem.c index 210e850c8d..b77b069930 100755 --- a/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardMem.c +++ b/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardMem.c @@ -1,14 +1,14 @@ /** @file * * Copyright (c) 2011, ARM Limited. All rights reserved. -* -* This program and the accompanying materials -* are licensed and made available under the terms and conditions of the BSD License -* which accompanies this distribution. The full text of the license may be found at -* http://opensource.org/licenses/bsd-license.php * -* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +* This program and the accompanying materials +* are licensed and made available under the terms and conditions of the BSD License +* which accompanies this distribution. The full text of the license may be found at +* http://opensource.org/licenses/bsd-license.php +* +* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. * **/ diff --git a/BeagleBoardPkg/Library/BeagleBoardLib/Clock.c b/BeagleBoardPkg/Library/BeagleBoardLib/Clock.c index 1985a6bfb4..6ca48e0c9f 100755 --- a/BeagleBoardPkg/Library/BeagleBoardLib/Clock.c +++ b/BeagleBoardPkg/Library/BeagleBoardLib/Clock.c @@ -1,7 +1,7 @@ /** @file Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
- + This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at diff --git a/BeagleBoardPkg/Library/BeagleBoardLib/PadConfiguration.c b/BeagleBoardPkg/Library/BeagleBoardLib/PadConfiguration.c index 45438023d2..e6f7cc55ff 100755 --- a/BeagleBoardPkg/Library/BeagleBoardLib/PadConfiguration.c +++ b/BeagleBoardPkg/Library/BeagleBoardLib/PadConfiguration.c @@ -1,7 +1,7 @@ /** @file Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
- + This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at diff --git a/BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.c b/BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.c index 4f1a327cea..46204a4386 100644 --- a/BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.c +++ b/BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.c @@ -2,7 +2,7 @@ Add custom commands for BeagleBoard development. Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.
- + This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -39,11 +39,11 @@ Simple arm disassembler via a library Argv[0] - symboltable - Argv[1] - Optional quoted format string + Argv[1] - Optional quoted format string Argv[2] - Optional flag @param Argc Number of command arguments in Argv - @param Argv Array of strings that represent the parsed command line. + @param Argv Array of strings that represent the parsed command line. Argv[0] is the command name @return EFI_SUCCESS @@ -64,7 +64,7 @@ EblSymbolTable ( UINT32 PeCoffSizeOfHeaders; UINT32 ImageBase; BOOLEAN Elf; - + // Need to add lots of error checking on the passed in string // Default string is for RealView debugger or gdb depending on toolchain used. if (Argc > 1) { @@ -74,17 +74,17 @@ EblSymbolTable ( // Assume gdb Format = "add-symbol-file %a 0x%x"; #else - // Default to RVCT + // Default to RVCT Format = "load /a /ni /np %a &0x%x"; #endif } Elf = (Argc > 2) ? FALSE : TRUE; - + Status = EfiGetSystemConfigurationTable (&gEfiDebugImageInfoTableGuid, (VOID **)&DebugImageTableHeader); if (EFI_ERROR (Status)) { return Status; } - + DebugTable = DebugImageTableHeader->EfiDebugImageInfoTable; if (DebugTable == NULL) { return EFI_SUCCESS; @@ -100,13 +100,13 @@ EblSymbolTable ( if (Elf) { // ELF and Mach-O images don't include the header so the linked address does not include header ImageBase += PeCoffSizeOfHeaders; - } + } AsciiPrint (Format, Pdb, ImageBase); AsciiPrint ("\n"); } else { } } - } + } } return EFI_SUCCESS; @@ -121,7 +121,7 @@ EblSymbolTable ( ARgv[2] - Number of instructions to disassembly (optional) @param Argc Number of command arguments in Argv - @param Argv Array of strings that represent the parsed command line. + @param Argv Array of strings that represent the parsed command line. Argv[0] is the command name @return EFI_SUCCESS @@ -138,22 +138,22 @@ EblDisassembler ( UINT32 Count; CHAR8 Buffer[80]; UINT32 ItBlock; - + if (Argc < 2) { return EFI_INVALID_PARAMETER; } - + Address = AsciiStrHexToUintn (Argv[1]); Count = (Argc > 2) ? (UINT32)AsciiStrHexToUintn (Argv[2]) : 20; - Ptr = (UINT8 *)(UINTN)Address; + Ptr = (UINT8 *)(UINTN)Address; ItBlock = 0; do { CurrentAddress = Ptr; DisassembleInstruction (&Ptr, TRUE, TRUE, &ItBlock, Buffer, sizeof (Buffer)); AsciiPrint ("0x%08x: %a\n", CurrentAddress, Buffer); } while (Count-- > 0); - + return EFI_SUCCESS; } @@ -203,7 +203,7 @@ CHAR8 *mTokenList[] = { ARgv[2] - Number of instructions to disassembly (optional) @param Argc Number of command arguments in Argv - @param Argv Array of strings that represent the parsed command line. + @param Argv Array of strings that represent the parsed command line. Argv[0] is the command name @return EFI_SUCCESS @@ -256,7 +256,7 @@ EblPerformance ( AsciiPrint ("%6a %6ld ms\n", Token, Milliseconds); break; } - } + } } } while (Key != 0); diff --git a/BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.inf b/BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.inf index 329df78bbe..a79448c0e9 100644 --- a/BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.inf +++ b/BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.inf @@ -20,7 +20,7 @@ FILE_GUID = ea62bdc3-1063-425f-8851-98cb47f213a8 MODULE_TYPE = UEFI_DRIVER VERSION_STRING = 1.0 - LIBRARY_CLASS = EblCmdLib|DXE_DRIVER UEFI_APPLICATION UEFI_DRIVER + LIBRARY_CLASS = EblCmdLib|DXE_DRIVER UEFI_APPLICATION UEFI_DRIVER # @@ -44,10 +44,10 @@ ArmDisassemblerLib PerformanceLib TimerLib - + [Protocols] gEfiDebugSupportProtocolGuid gEfiLoadedImageProtocolGuid - + [Guids] gEfiDebugImageInfoTableGuid diff --git a/BeagleBoardPkg/Library/GdbSerialLib/GdbSerialLib.c b/BeagleBoardPkg/Library/GdbSerialLib/GdbSerialLib.c index 7634ee174c..82a2957dc9 100644 --- a/BeagleBoardPkg/Library/GdbSerialLib/GdbSerialLib.c +++ b/BeagleBoardPkg/Library/GdbSerialLib/GdbSerialLib.c @@ -2,7 +2,7 @@ Basic serial IO abstaction for GDB Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
- + This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -34,10 +34,10 @@ GdbSerialLibConstructor ( RETURN_STATUS EFIAPI GdbSerialInit ( - IN UINT64 BaudRate, - IN UINT8 Parity, - IN UINT8 DataBits, - IN UINT8 StopBits + IN UINT64 BaudRate, + IN UINT8 Parity, + IN UINT8 DataBits, + IN UINT8 StopBits ) { return RETURN_SUCCESS; @@ -47,7 +47,7 @@ BOOLEAN EFIAPI GdbIsCharAvailable ( VOID - ) + ) { UINT32 LSR = UartBase(PcdGet32(PcdOmap35xxConsoleUart)) + UART_LSR_REG; @@ -67,7 +67,7 @@ GdbGetChar ( UINT32 LSR = UartBase(PcdGet32(PcdOmap35xxConsoleUart)) + UART_LSR_REG; UINT32 RBR = UartBase(PcdGet32(PcdOmap35xxConsoleUart)) + UART_RBR_REG; CHAR8 Char; - + while ((MmioRead8(LSR) & UART_LSR_RX_FIFO_E_MASK) == UART_LSR_RX_FIFO_E_EMPTY); Char = MmioRead8(RBR); @@ -82,7 +82,7 @@ GdbPutChar ( { UINT32 LSR = UartBase(PcdGet32(PcdOmap35xxConsoleUart)) + UART_LSR_REG; UINT32 THR = UartBase(PcdGet32(PcdOmap35xxConsoleUart)) + UART_THR_REG; - + while ((MmioRead8(LSR) & UART_LSR_TX_FIFO_E_MASK) == UART_LSR_TX_FIFO_E_NOT_EMPTY); MmioWrite8(THR, Char); } diff --git a/BeagleBoardPkg/Library/GdbSerialLib/GdbSerialLib.inf b/BeagleBoardPkg/Library/GdbSerialLib/GdbSerialLib.inf index df96e8b756..a06acf14fb 100644 --- a/BeagleBoardPkg/Library/GdbSerialLib/GdbSerialLib.inf +++ b/BeagleBoardPkg/Library/GdbSerialLib/GdbSerialLib.inf @@ -1,14 +1,14 @@ #/** @file -# +# # Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.
# This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full text of the license may be found at # http://opensource.org/licenses/bsd-license.php -# +# # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -# +# #**/ [Defines] @@ -34,7 +34,7 @@ [LibraryClasses] DebugLib IoLib - OmapLib + OmapLib [FixedPcd] gOmap35xxTokenSpaceGuid.PcdOmap35xxConsoleUart diff --git a/BeagleBoardPkg/Library/ResetSystemLib/ResetSystemLib.c b/BeagleBoardPkg/Library/ResetSystemLib/ResetSystemLib.c index 706a19b273..7b0949e043 100644 --- a/BeagleBoardPkg/Library/ResetSystemLib/ResetSystemLib.c +++ b/BeagleBoardPkg/Library/ResetSystemLib/ResetSystemLib.c @@ -1,8 +1,8 @@ /** @file Do a generic Cold Reset for OMAP3550 and BeagleBoard specific Warm reset - + Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.
- + This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -54,7 +54,7 @@ ShutdownEfi ( Pages = EFI_SIZE_TO_PAGES (MemoryMapSize) + 1; MemoryMap = AllocatePages (Pages); - + // // Get System MemoryMap // @@ -141,7 +141,7 @@ LibResetSystem ( ASSERT (FALSE); return EFI_DEVICE_ERROR; } - + /** @@ -149,7 +149,7 @@ LibResetSystem ( @param ImageHandle The firmware allocated handle for the EFI image. @param SystemTable A pointer to the EFI System Table. - + @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS. **/ diff --git a/BeagleBoardPkg/Library/ResetSystemLib/ResetSystemLib.inf b/BeagleBoardPkg/Library/ResetSystemLib/ResetSystemLib.inf index e198812554..64638cb62c 100644 --- a/BeagleBoardPkg/Library/ResetSystemLib/ResetSystemLib.inf +++ b/BeagleBoardPkg/Library/ResetSystemLib/ResetSystemLib.inf @@ -34,7 +34,7 @@ [Pcd.common] gArmTokenSpaceGuid.PcdCpuResetAddress gEmbeddedTokenSpaceGuid.PcdEmbeddedFdBaseAddress - + [LibraryClasses] DebugLib ArmLib diff --git a/BeagleBoardPkg/Sec/Arm/ModuleEntryPoint.S b/BeagleBoardPkg/Sec/Arm/ModuleEntryPoint.S index 94291fc52c..b656c1e040 100644 --- a/BeagleBoardPkg/Sec/Arm/ModuleEntryPoint.S +++ b/BeagleBoardPkg/Sec/Arm/ModuleEntryPoint.S @@ -1,4 +1,4 @@ -#------------------------------------------------------------------------------ +#------------------------------------------------------------------------------ # # Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
# @@ -27,7 +27,7 @@ ASM_PFX(_ModuleEntryPoint): mrc p15, 0, r0, c1, c0, 1 // read Auxiliary Control Register bic r0, r0, #0x00000002 // disable L2 cache mcr p15, 0, r0, c1, c0, 1 // store Auxiliary Control Register - + //Enable Strict alignment checking & Instruction cache mrc p15, 0, r0, c1, c0, 0 bic r0, r0, #0x00002300 /* clear bits 13, 9:8 (--V- --RS) */ @@ -42,8 +42,8 @@ ASM_PFX(_ModuleEntryPoint): mcr p15, 0, r0, c1, c0, 2 mov r0, #0x40000000 // Set EN bit in FPEXC mcr p10,#0x7,r0,c8,c0,#0 // msr FPEXC,r0 in ARM assembly - - + + // Set CPU vectors to start of DRAM LoadConstantToReg (FixedPcdGet32(PcdCpuVectorBaseAddress) ,r0) // Get vector base mcr p15, 0, r0, c12, c0, 0 @@ -57,14 +57,14 @@ FillVectors: adds r2, r2, #4 cmp r2, #32 bne FillVectors - + /* before we call C code, lets setup the stack pointer in internal RAM */ stack_pointer_setup: // - // Set stack based on PCD values. Need to do it this way to make C code work - // when it runs from FLASH. - // + // Set stack based on PCD values. Need to do it this way to make C code work + // when it runs from FLASH. + // LoadConstantToReg (FixedPcdGet32(PcdPrePiStackBase) ,r2) /* stack base arg2 */ LoadConstantToReg (FixedPcdGet32(PcdPrePiStackSize) ,r3) /* stack size arg3 */ add r4, r2, r3 @@ -82,4 +82,4 @@ stack_pointer_setup: ShouldNeverGetHere: /* _CEntryPoint should never return */ b ShouldNeverGetHere - + diff --git a/BeagleBoardPkg/Sec/Arm/ModuleEntryPoint.asm b/BeagleBoardPkg/Sec/Arm/ModuleEntryPoint.asm index d31a29b7c9..63174d4b84 100644 --- a/BeagleBoardPkg/Sec/Arm/ModuleEntryPoint.asm +++ b/BeagleBoardPkg/Sec/Arm/ModuleEntryPoint.asm @@ -1,4 +1,4 @@ -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // // Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
// @@ -16,21 +16,21 @@ #include #include INCLUDE AsmMacroIoLib.inc - + IMPORT CEntryPoint EXPORT _ModuleEntryPoint - + PRESERVE8 AREA ModuleEntryPoint, CODE, READONLY - + _ModuleEntryPoint - + //Disable L2 cache mrc p15, 0, r0, c1, c0, 1 // read Auxiliary Control Register bic r0, r0, #0x00000002 // disable L2 cache mcr p15, 0, r0, c1, c0, 1 // store Auxiliary Control Register - + //Enable Strict alignment checking & Instruction cache mrc p15, 0, r0, c1, c0, 0 bic r0, r0, #0x00002300 /* clear bits 13, 9:8 (--V- --RS) */ @@ -38,14 +38,14 @@ _ModuleEntryPoint orr r0, r0, #0x00000002 /* set bit 1 (A) Align */ orr r0, r0, #0x00001000 /* set bit 12 (I) enable I-Cache */ mcr p15, 0, r0, c1, c0, 0 - + // Enable NEON register in case folks want to use them for optimizations (CopyMem) mrc p15, 0, r0, c1, c0, 2 orr r0, r0, #0x00f00000 // Enable VPF access (V* instructions) mcr p15, 0, r0, c1, c0, 2 mov r0, #0x40000000 // Set EN bit in FPEXC msr FPEXC,r0 - + // Set CPU vectors to start of DRAM LoadConstantToReg (FixedPcdGet32(PcdCpuVectorBaseAddress) ,r0) // Get vector base mcr p15, 0, r0, c12, c0, 0 @@ -59,16 +59,16 @@ FillVectors adds r2, r2, #4 cmp r2, #32 bne FillVectors - + /* before we call C code, lets setup the stack pointer in internal RAM */ stack_pointer_setup // - // Set stack based on PCD values. Need to do it this way to make C code work - // when it runs from FLASH. - // - LoadConstantToReg (FixedPcdGet32(PcdPrePiStackBase) ,r2) // stack base arg2 - LoadConstantToReg (FixedPcdGet32(PcdPrePiStackSize) ,r3) // stack size arg3 + // Set stack based on PCD values. Need to do it this way to make C code work + // when it runs from FLASH. + // + LoadConstantToReg (FixedPcdGet32(PcdPrePiStackBase) ,r2) // stack base arg2 + LoadConstantToReg (FixedPcdGet32(PcdPrePiStackSize) ,r3) // stack size arg3 add r4, r2, r3 //Enter SVC mode and set up SVC stack pointer @@ -77,13 +77,13 @@ stack_pointer_setup mov r13,r4 // Call C entry point - LoadConstantToReg (FixedPcdGet32(PcdMemorySize) ,r1) // memory size arg1 + LoadConstantToReg (FixedPcdGet32(PcdMemorySize) ,r1) // memory size arg1 LoadConstantToReg (FixedPcdGet32(PcdMemoryBase) ,r0) // memory start arg0 - blx CEntryPoint // Assume C code is thumb + blx CEntryPoint // Assume C code is thumb ShouldNeverGetHere /* _CEntryPoint should never return */ b ShouldNeverGetHere - + END diff --git a/BeagleBoardPkg/Sec/Cache.c b/BeagleBoardPkg/Sec/Cache.c index 193004a8e8..7399eef5be 100644 --- a/BeagleBoardPkg/Sec/Cache.c +++ b/BeagleBoardPkg/Sec/Cache.c @@ -1,7 +1,7 @@ /** @file Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
- + This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -60,7 +60,7 @@ InitCache ( MemoryTable[1].VirtualBase = SOC_REGISTERS_L3_PHYSICAL_BASE; MemoryTable[1].Length = SOC_REGISTERS_L3_PHYSICAL_LENGTH; MemoryTable[1].Attributes = SOC_REGISTERS_L3_ATTRIBUTES; - + // SOC Registers. L4 interconnects MemoryTable[2].PhysicalBase = SOC_REGISTERS_L4_PHYSICAL_BASE; MemoryTable[2].VirtualBase = SOC_REGISTERS_L4_PHYSICAL_BASE; @@ -72,8 +72,8 @@ InitCache ( MemoryTable[3].VirtualBase = 0; MemoryTable[3].Length = 0; MemoryTable[3].Attributes = (ARM_MEMORY_REGION_ATTRIBUTES)0; - + ArmConfigureMmu (MemoryTable, &TranslationTableBase, &TranslationTableSize); - + BuildMemoryAllocationHob((EFI_PHYSICAL_ADDRESS)(UINTN)TranslationTableBase, TranslationTableSize, EfiBootServicesData); } diff --git a/BeagleBoardPkg/Sec/Clock.c b/BeagleBoardPkg/Sec/Clock.c index 8de24f851c..24fdc71c42 100644 --- a/BeagleBoardPkg/Sec/Clock.c +++ b/BeagleBoardPkg/Sec/Clock.c @@ -1,7 +1,7 @@ /** @file Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
- + This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at diff --git a/BeagleBoardPkg/Sec/LzmaDecompress.h b/BeagleBoardPkg/Sec/LzmaDecompress.h index e4483b6823..a79ff343d2 100644 --- a/BeagleBoardPkg/Sec/LzmaDecompress.h +++ b/BeagleBoardPkg/Sec/LzmaDecompress.h @@ -19,16 +19,16 @@ Examines a GUIDed section and returns the size of the decoded buffer and the size of an scratch buffer required to actually decode the data in a GUIDed section. - Examines a GUIDed section specified by InputSection. + Examines a GUIDed section specified by InputSection. If GUID for InputSection does not match the GUID that this handler supports, - then RETURN_UNSUPPORTED is returned. + then RETURN_UNSUPPORTED is returned. If the required information can not be retrieved from InputSection, then RETURN_INVALID_PARAMETER is returned. If the GUID of InputSection does match the GUID that this handler supports, then the size required to hold the decoded buffer is returned in OututBufferSize, the size of an optional scratch buffer is returned in ScratchSize, and the Attributes field from EFI_GUID_DEFINED_SECTION header of InputSection is returned in SectionAttribute. - + If InputSection is NULL, then ASSERT(). If OutputBufferSize is NULL, then ASSERT(). If ScratchBufferSize is NULL, then ASSERT(). @@ -59,16 +59,16 @@ LzmaGuidedSectionGetInfo ( /** Decompress a LZAM compressed GUIDed section into a caller allocated output buffer. - - Decodes the GUIDed section specified by InputSection. - If GUID for InputSection does not match the GUID that this handler supports, then RETURN_UNSUPPORTED is returned. + + Decodes the GUIDed section specified by InputSection. + If GUID for InputSection does not match the GUID that this handler supports, then RETURN_UNSUPPORTED is returned. If the data in InputSection can not be decoded, then RETURN_INVALID_PARAMETER is returned. If the GUID of InputSection does match the GUID that this handler supports, then InputSection is decoded into the buffer specified by OutputBuffer and the authentication status of this decode operation is returned in AuthenticationStatus. If the decoded buffer is identical to the data in InputSection, then OutputBuffer is set to point at the data in InputSection. Otherwise, the decoded data will be placed in caller allocated buffer specified by OutputBuffer. - + If InputSection is NULL, then ASSERT(). If OutputBuffer is NULL, then ASSERT(). If ScratchBuffer is NULL and this decode operation requires a scratch buffer, then ASSERT(). @@ -76,10 +76,10 @@ LzmaGuidedSectionGetInfo ( @param[in] InputSection A pointer to a GUIDed section of an FFS formatted file. - @param[out] OutputBuffer A pointer to a buffer that contains the result of a decode operation. + @param[out] OutputBuffer A pointer to a buffer that contains the result of a decode operation. @param[out] ScratchBuffer A caller allocated buffer that may be required by this function - as a scratch buffer to perform the decode operation. - @param[out] AuthenticationStatus + as a scratch buffer to perform the decode operation. + @param[out] AuthenticationStatus A pointer to the authentication status of the decoded output buffer. See the definition of authentication status in the EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI section of the PI Specification. EFI_AUTH_STATUS_PLATFORM_OVERRIDE must @@ -98,6 +98,6 @@ LzmaGuidedSectionExtraction ( OUT VOID *ScratchBuffer, OPTIONAL OUT UINT32 *AuthenticationStatus ); - + #endif // __LZMADECOMPRESS_H__ diff --git a/BeagleBoardPkg/Sec/PadConfiguration.c b/BeagleBoardPkg/Sec/PadConfiguration.c index ddd9296120..2dace3bf38 100644 --- a/BeagleBoardPkg/Sec/PadConfiguration.c +++ b/BeagleBoardPkg/Sec/PadConfiguration.c @@ -1,7 +1,7 @@ /** @file Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
- + This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at diff --git a/BeagleBoardPkg/Sec/Sec.c b/BeagleBoardPkg/Sec/Sec.c index eea9455e3f..0708396d97 100644 --- a/BeagleBoardPkg/Sec/Sec.c +++ b/BeagleBoardPkg/Sec/Sec.c @@ -2,7 +2,7 @@ C Entry point for the SEC. First C code after the reset vector. Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
- + This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -93,9 +93,9 @@ UartInit ( MmioWrite32 (UartBaseAddress + UART_MCR_REG, UART_MCR_RTS_FORCE_ACTIVE | UART_MCR_DTR_FORCE_ACTIVE); // Clear & enable fifos - MmioWrite32 (UartBaseAddress + UART_FCR_REG, UART_FCR_TX_FIFO_CLEAR | UART_FCR_RX_FIFO_CLEAR | UART_FCR_FIFO_ENABLE); + MmioWrite32 (UartBaseAddress + UART_FCR_REG, UART_FCR_TX_FIFO_CLEAR | UART_FCR_RX_FIFO_CLEAR | UART_FCR_FIFO_ENABLE); - // Restore MODE_SELECT + // Restore MODE_SELECT MmioWrite32 (UartBaseAddress + UART_MDR1_REG, UART_MDR1_MODE_SELECT_UART_16X); } @@ -153,7 +153,7 @@ CEntryPoint ( // Start talking UartInit (); - + InitializeDebugAgent (DEBUG_AGENT_INIT_PREMEM_SEC, NULL, NULL); SaveAndSetDebugTimerInterrupt (TRUE); @@ -179,7 +179,7 @@ CEntryPoint ( // Load the DXE Core and transfer control to it LoadDxeCoreFromFv (NULL, 0); - + // DXE Core should always load and never return ASSERT (FALSE); } diff --git a/BeagleBoardPkg/Sec/Sec.inf b/BeagleBoardPkg/Sec/Sec.inf index 7fc4ec12d4..eb6d93c000 100644 --- a/BeagleBoardPkg/Sec/Sec.inf +++ b/BeagleBoardPkg/Sec/Sec.inf @@ -1,16 +1,16 @@ #/** @file # SEC - Reset vector code that jumps to C and loads DXE core -# +# # Copyright (c) 2008, Apple Inc. All rights reserved.
# This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full text of the license may be found at # http://opensource.org/licenses/bsd-license.php -# +# # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -# +# #**/ [Defines] @@ -30,7 +30,7 @@ Cache.c PadConfiguration.c Clock.c - + [Packages] MdePkg/MdePkg.dec MdeModulePkg/MdeModulePkg.dec @@ -52,7 +52,7 @@ MemoryAllocationLib PrePiHobListPointerLib -[FeaturePcd] +[FeaturePcd] gEmbeddedTokenSpaceGuid.PcdCacheEnable [FixedPcd] @@ -65,9 +65,9 @@ gEmbeddedTokenSpaceGuid.PcdPrePiStackBase gEmbeddedTokenSpaceGuid.PcdMemoryBase gEmbeddedTokenSpaceGuid.PcdMemorySize - + gOmap35xxTokenSpaceGuid.PcdOmap35xxConsoleUart gOmap35xxTokenSpaceGuid.PcdOmap35xxFreeTimer - + gArmTokenSpaceGuid.PcdCpuVectorBaseAddress diff --git a/BeagleBoardPkg/Tools/generate_image.c b/BeagleBoardPkg/Tools/generate_image.c index 9426ca3337..7fc3faba10 100644 --- a/BeagleBoardPkg/Tools/generate_image.c +++ b/BeagleBoardPkg/Tools/generate_image.c @@ -2,13 +2,13 @@ The data structures in this code come from: OMAP35x Applications Processor Technical Reference Manual chapter 25 OMAP34xx Multimedia Device Technical Reference Manual chapter 26.4.8. - - You should use the OMAP35x manual when possible. Some things, like SectionKey, + + You should use the OMAP35x manual when possible. Some things, like SectionKey, are not defined in the OMAP35x manual and you have to use the OMAP34xx manual - to find the data. + to find the data. Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.
- + This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -44,22 +44,22 @@ typedef struct { unsigned char Version; unsigned short Reserved; unsigned int Flags; - unsigned int PRM_CLKSRC_CTRL; - unsigned int PRM_CLKSEL; + unsigned int PRM_CLKSRC_CTRL; + unsigned int PRM_CLKSEL; unsigned int CM_CLKSEL1_EMU; unsigned int CM_CLKSEL_CORE; unsigned int CM_CLKSEL_WKUP; unsigned int CM_CLKEN_PLL_DPLL3; - unsigned int CM_AUTOIDLE_PLL_DPLL3; - unsigned int CM_CLKSEL1_PLL; + unsigned int CM_AUTOIDLE_PLL_DPLL3; + unsigned int CM_CLKSEL1_PLL; unsigned int CM_CLKEN_PLL_DPLL4; unsigned int CM_AUTOIDLE_PLL_DPLL4; unsigned int CM_CLKSEL2_PLL; - unsigned int CM_CLKSEL3_PLL; - unsigned int CM_CLKEN_PLL_MPU; - unsigned int CM_AUTOIDLE_PLL_MPU; - unsigned int CM_CLKSEL1_PLL_MPU; - unsigned int CM_CLKSEL2_PLL_MPU; + unsigned int CM_CLKSEL3_PLL; + unsigned int CM_CLKEN_PLL_MPU; + unsigned int CM_AUTOIDLE_PLL_MPU; + unsigned int CM_CLKSEL1_PLL_MPU; + unsigned int CM_CLKSEL2_PLL_MPU; unsigned int CM_CLKSTCTRL_MPU; } CHSETTINGS_DATA; @@ -131,7 +131,7 @@ PopulateCHSETTINGSData ( ) { unsigned int Value; - + CHSETTINGSData->SectionKey = 0xC0C0C0C1; CHSETTINGSData->Valid = 0x1; CHSETTINGSData->Version = 0x1; @@ -191,10 +191,10 @@ PopulateCHRAMData ( ) { unsigned int Value; - + CHRAMData->SectionKey = 0xC0C0C0C2; CHRAMData->Valid = 0x1; - + fscanf(DataFile, "SDRC_SYSCONFIG_LSB=0x%04x\n", &Value); CHRAMData->SDRC_SYSCONFIG_LSB = Value; fscanf(DataFile, "SDRC_CS_CFG_LSB=0x%04x\n", &Value); @@ -247,8 +247,8 @@ PopulateCHRAMData ( CHRAMData->Flags = 0x0003; } -static -void +static +void PrepareConfigurationHeader ( void ) @@ -258,14 +258,14 @@ PrepareConfigurationHeader ( CHRAM_DATA CHRAMData; unsigned int ConfigurationHdrOffset = 0; FILE *DataFile; - + // Open data file DataFile = fopen(gDataFile, "rb"); if (DataFile == NULL) { fprintf(stderr, "Can't open data file %s.\n", gDataFile); exit(1); } - + //Initialize configuration header. memset(gConfigurationHeader, 0x00, sizeof(gConfigurationHeader)); @@ -295,19 +295,19 @@ PrepareConfigurationHeader ( memset(&CHRAMData, 0x00, sizeof(CHRAM_DATA)); PopulateCHRAMData(DataFile, &CHRAMData); memcpy(gConfigurationHeader + Toc.Start, &CHRAMData, Toc.Size); - + //Adjust ConfigurationHdrOffset to point to next TOC ConfigurationHdrOffset += sizeof(TOC_DATA); //Closing TOC item memset(gConfigurationHeader + ConfigurationHdrOffset, 0xFF, CLOSING_TOC_ITEM_SIZE); ConfigurationHdrOffset += CLOSING_TOC_ITEM_SIZE; - + // Close data file fclose(DataFile); } -static +static void ConstructImage ( void @@ -324,19 +324,19 @@ ConstructImage ( if (InputFile == NULL) { fprintf(stderr, "Can't open input file.\n"); exit(0); - } + } // Get the size of the input image. fstat(fileno(InputFile), &FileStat); InputImageFileSize = FileStat.st_size; - + OutputFile = fopen(gOutputImageFile, "wb"); if (OutputFile == NULL) { fprintf(stderr, "Can't open output file %s.\n", gOutputImageFile); exit(0); } - // Write Configuration header + // Write Configuration header fwrite(gConfigurationHeader, 1, sizeof(gConfigurationHeader), OutputFile); // Write image header (Input image size, execution address) @@ -354,16 +354,16 @@ ConstructImage ( } -int +int main ( - int argc, + int argc, char** argv ) { char Ch; unsigned char *ptr; int i; - int TwoArg; + int TwoArg; if (argc == 1) { PrintUsage (); @@ -378,7 +378,7 @@ main ( case 'E': /* Image execution address */ gImageExecutionAddress = strtoul (TwoArg ? argv[i+1] : &argv[i][2], (char **)&ptr, 16); break; - + case 'I': /* Input image file */ gInputImageFile = TwoArg ? argv[i+1] : &argv[i][2]; break; @@ -386,7 +386,7 @@ main ( case 'O': /* Output image file */ gOutputImageFile = TwoArg ? argv[i+1] : &argv[i][2]; break; - + case 'D': /* Data file */ gDataFile = TwoArg ? argv[i+1] : &argv[i][2]; break; @@ -397,7 +397,7 @@ main ( } } - + //Prepare configuration header PrepareConfigurationHeader (); diff --git a/BeagleBoardPkg/Tools/replace.c b/BeagleBoardPkg/Tools/replace.c index e35c394dc2..00f4249592 100644 --- a/BeagleBoardPkg/Tools/replace.c +++ b/BeagleBoardPkg/Tools/replace.c @@ -1,9 +1,9 @@ // -// Quick hack to work around not having sed, or any other reasonable +// Quick hack to work around not having sed, or any other reasonable // way to edit a file from a script on Windows...... // // Copyright (c) 2010, Apple Inc. All rights reserved.
-// +// // This program and the accompanying materials // are licensed and made available under the terms and conditions of the BSD License // which accompanies this distribution. The full text of the license may be found at @@ -40,7 +40,7 @@ Usage (char *Name) // argv[1] - Old File // argv[2] - New File // argv[3+n] - Match String -// argv[4+n] - Replace string +// argv[4+n] - Replace string int main (int argc, char **argv) { @@ -106,9 +106,9 @@ main (int argc, char **argv) // into a buffer that is as big as the maximum search key size. // Then we can search the keys for a match. If no match // copy the old file character to the new file. If it is a match - // then copy the replacement string into the output file. - // This code assumes the file system is smart and caches the - // file in a buffer. So all the reads don't really hit the disk. + // then copy the replacement string into the output file. + // This code assumes the file system is smart and caches the + // file in a buffer. So all the reads don't really hit the disk. InFilePos = 0; while (InFilePos < (InFileSize - MinLenKey)) { fseek (In, InFilePos, SEEK_SET); @@ -126,7 +126,7 @@ main (int argc, char **argv) if (!Found) { fputc (Key[0], Out); } - + InFilePos++; } @@ -136,7 +136,7 @@ main (int argc, char **argv) while ((c = fgetc (In)) != EOF) { fputc (c, Out); } - + fclose (In); fclose (Out); free (Key); -- cgit v1.2.3