]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ARM Packages: CRLF fixup
authorLeif Lindholm <leif.lindholm@linaro.org>
Wed, 12 Feb 2014 15:30:34 +0000 (15:30 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 12 Feb 2014 15:30:34 +0000 (15:30 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15241 6f19259b-4bc3-4df7-8a09-765794883524

20 files changed:
ArmPkg/Library/ArmLib/AArch64/AArch64Mmu.c
ArmPlatformPkg/ArmRealViewEbPkg/Debugger_scripts/rvi_boot_from_ram.inc
ArmPlatformPkg/ArmRealViewEbPkg/Debugger_scripts/rvi_hw_setup.inc
ArmPlatformPkg/ArmRealViewEbPkg/ba.bat
ArmPlatformPkg/ArmVExpressPkg/Scripts/uefi-aarch64-bootstrap/LICENSE.TXT
ArmPlatformPkg/ArmVExpressPkg/Scripts/uefi-aarch64-bootstrap/Makefile
ArmPlatformPkg/ArmVExpressPkg/Scripts/uefi-aarch64-bootstrap/boot.S
ArmPlatformPkg/ArmVExpressPkg/Scripts/uefi-aarch64-bootstrap/model.lds.S
ArmPlatformPkg/ArmVExpressPkg/Scripts/uefi-aarch64-bootstrap/readme.html
ArmPlatformPkg/ArmVExpressPkg/Scripts/uefi-aarch64-bootstrap/readme.txt
ArmPlatformPkg/Scripts/Ds5/system_table.py
BeagleBoardPkg/Debugger_scripts/rvi_boot_from_ram.inc
BeagleBoardPkg/Debugger_scripts/rvi_hw_setup.inc
BeagleBoardPkg/Debugger_scripts/trace32_load_symbols.cmm
BeagleBoardPkg/Debugger_scripts/trace32_load_symbols_cygwin.cmm
BeagleBoardPkg/Tools/GNUmakefile
BeagleBoardPkg/Tools/makefile
BeagleBoardPkg/b.bat
BeagleBoardPkg/ba.bat
Omap35xxPkg/Omap35xxPkg.dec

index 42b4963913bd76d65a4e3e068cfe234d0e70a0a0..9bc984f0bfee6b1f794caef6e7ccbb09096b7126 100644 (file)
@@ -471,7 +471,7 @@ SetMemoryAttributes (
   IN UINT64                    Attributes,\r
   IN EFI_PHYSICAL_ADDRESS      VirtualMask\r
   )\r
-{
+{\r
   RETURN_STATUS                Status;\r
   ARM_MEMORY_REGION_DESCRIPTOR MemoryRegion;\r
   UINT64                      *TranslationTable;\r
@@ -483,9 +483,9 @@ SetMemoryAttributes (
 \r
   TranslationTable = ArmGetTTBR0BaseAddress ();\r
 \r
-  Status = FillTranslationTable (TranslationTable, &MemoryRegion);
-  if (RETURN_ERROR (Status)) {
-    return Status;
+  Status = FillTranslationTable (TranslationTable, &MemoryRegion);\r
+  if (RETURN_ERROR (Status)) {\r
+    return Status;\r
   }\r
 \r
   // Flush d-cache so descriptors make it back to uncached memory for subsequent table walks\r
index 6299a84799dff9c9086d4ee59e7d777960feb3f4..c691af69d76f93b5ed0cf01772b628dcdb6d9638 100644 (file)
@@ -1,21 +1,21 @@
-//
-// Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
-//  
-//  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.
-//
-error = continue
-unload
-error = abort
-
-setreg @CP15_CONTROL = 0x0005107E
-setreg @pc=0x80008208
-setreg @cpsr=0x000000D3
-dis/D
-readfile,raw,nowarn "ZZZZZZ/FV/BEAGLEBOARD_EFI.fd"=0x80008000
-
+//\r
+// Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+//  \r
+//  This program and the accompanying materials\r
+//  are licensed and made available under the terms and conditions of the BSD License\r
+//  which accompanies this distribution.  The full text of the license may be found at\r
+//  http://opensource.org/licenses/bsd-license.php\r
+//\r
+//  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+//  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+//\r
+error = continue\r
+unload\r
+error = abort\r
+\r
+setreg @CP15_CONTROL = 0x0005107E\r
+setreg @pc=0x80008208\r
+setreg @cpsr=0x000000D3\r
+dis/D\r
+readfile,raw,nowarn "ZZZZZZ/FV/BEAGLEBOARD_EFI.fd"=0x80008000\r
+\r
index ea5f8ec15fbdbd815864de8d49afea0c3def81bd..ba4190d56843ef3016b845e14c10be74280cbdfc 100644 (file)
@@ -1,67 +1,67 @@
-//
-// Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
-//  
-//  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.
-//
-
-error = continue
-unload
-error = abort
-
-setreg @CP15_CONTROL = 0x0005107E
-setreg @cpsr=0x000000D3
-
-; General clock settings.
-setmem /32 0x48307270=0x00000080
-setmem /32 0x48306D40=0x00000003
-setmem /32 0x48005140=0x03020A50
-
-;Clock configuration
-setmem /32 0x48004A40=0x0000030A
-setmem /32 0x48004C40=0x00000015
-
-;DPLL3 (Core) settings
-setmem /32 0x48004D00=0x00370037
-setmem /32 0x48004D30=0x00000000
-setmem /32 0x48004D40=0x094C0C00
-
-;DPLL4 (Peripheral) settings
-setmem /32 0x48004D00=0x00370037
-setmem /32 0x48004D30=0x00000000
-setmem /32 0x48004D44=0x0001B00C
-setmem /32 0x48004D48=0x00000009
-
-;DPLL1 (MPU) settings
-setmem /32 0x48004904=0x00000037
-setmem /32 0x48004934=0x00000000
-setmem /32 0x48004940=0x0011F40C
-setmem /32 0x48004944=0x00000001
-setmem /32 0x48004948=0x00000000
-
-;RAM setup.
-setmem /16 0x6D000010=0x0000
-setmem /16 0x6D000040=0x0001
-setmem /16 0x6D000044=0x0100
-setmem /16 0x6D000048=0x0000
-setmem /32 0x6D000060=0x0000000A
-setmem /32 0x6D000070=0x00000081
-setmem /16 0x6D000040=0x0003
-setmem /32 0x6D000080=0x02D04011
-setmem /16 0x6D000084=0x0032
-setmem /16 0x6D00008C=0x0000
-setmem /32 0x6D00009C=0xBA9DC4C6
-setmem /32 0x6D0000A0=0x00012522
-setmem /32 0x6D0000A4=0x0004E201
-setmem /16 0x6D000040=0x0003
-setmem /32 0x6D0000B0=0x02D04011
-setmem /16 0x6D0000B4=0x0032
-setmem /16 0x6D0000BC=0x0000
-setmem /32 0x6D0000C4=0xBA9DC4C6
-setmem /32 0x6D0000C8=0x00012522
+//\r
+// Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+//  \r
+//  This program and the accompanying materials\r
+//  are licensed and made available under the terms and conditions of the BSD License\r
+//  which accompanies this distribution.  The full text of the license may be found at\r
+//  http://opensource.org/licenses/bsd-license.php\r
+//\r
+//  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+//  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+//\r
+\r
+error = continue\r
+unload\r
+error = abort\r
+\r
+setreg @CP15_CONTROL = 0x0005107E\r
+setreg @cpsr=0x000000D3\r
+\r
+; General clock settings.\r
+setmem /32 0x48307270=0x00000080\r
+setmem /32 0x48306D40=0x00000003\r
+setmem /32 0x48005140=0x03020A50\r
+\r
+;Clock configuration\r
+setmem /32 0x48004A40=0x0000030A\r
+setmem /32 0x48004C40=0x00000015\r
+\r
+;DPLL3 (Core) settings\r
+setmem /32 0x48004D00=0x00370037\r
+setmem /32 0x48004D30=0x00000000\r
+setmem /32 0x48004D40=0x094C0C00\r
+\r
+;DPLL4 (Peripheral) settings\r
+setmem /32 0x48004D00=0x00370037\r
+setmem /32 0x48004D30=0x00000000\r
+setmem /32 0x48004D44=0x0001B00C\r
+setmem /32 0x48004D48=0x00000009\r
+\r
+;DPLL1 (MPU) settings\r
+setmem /32 0x48004904=0x00000037\r
+setmem /32 0x48004934=0x00000000\r
+setmem /32 0x48004940=0x0011F40C\r
+setmem /32 0x48004944=0x00000001\r
+setmem /32 0x48004948=0x00000000\r
+\r
+;RAM setup.\r
+setmem /16 0x6D000010=0x0000\r
+setmem /16 0x6D000040=0x0001\r
+setmem /16 0x6D000044=0x0100\r
+setmem /16 0x6D000048=0x0000\r
+setmem /32 0x6D000060=0x0000000A\r
+setmem /32 0x6D000070=0x00000081\r
+setmem /16 0x6D000040=0x0003\r
+setmem /32 0x6D000080=0x02D04011\r
+setmem /16 0x6D000084=0x0032\r
+setmem /16 0x6D00008C=0x0000\r
+setmem /32 0x6D00009C=0xBA9DC4C6\r
+setmem /32 0x6D0000A0=0x00012522\r
+setmem /32 0x6D0000A4=0x0004E201\r
+setmem /16 0x6D000040=0x0003\r
+setmem /32 0x6D0000B0=0x02D04011\r
+setmem /16 0x6D0000B4=0x0032\r
+setmem /16 0x6D0000BC=0x0000\r
+setmem /32 0x6D0000C4=0xBA9DC4C6\r
+setmem /32 0x6D0000C8=0x00012522\r
 setmem /32 0x6D0000D4=0x0004E201
\ No newline at end of file
index 545da382bfc612f0d08c7d0965d07d9d3636388f..6ec1cbe44385a638ee7c5b246f84bc32ed0602f7 100644 (file)
@@ -1,56 +1,56 @@
-@REM Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
-@REM This program and the accompanying materials
-@REM are licensed and made available under the terms and conditions of the BSD License
-@REM which accompanies this distribution.  The full text of the license may be found at
-@REM http://opensource.org/licenses/bsd-license.php
-@REM
-@REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-@REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-@REM
-
-@REM Example usage of this script. default is a DEBUG build
-@REM b
-@REM b clean
-@REM b release 
-@REM b release clean
-@REM b -v -y build.log
-
-ECHO OFF
-@REM Setup Build environment. Sets WORKSPACE and puts build in path
-CALL ..\edksetup.bat
-
-@REM Set for tools chain. Currently ARMGCC
-SET TARGET_TOOLS=ARMGCC
-SET TARGET=DEBUG
-
-
-@if /I "%1"=="RELEASE" (
-
-  @REM If 1st argument is release set TARGET to RELEASE and shift arguments to remove it 
-
-  SET TARGET=RELEASE
-
-  shift /1
-
-)
-
-
-SET BUILD_ROOT=%WORKSPACE%\Build\ArmRealViewEb\%TARGET%_%TARGET_TOOLS%
-
-@REM Build the ARM RealView EB firmware and creat an FD (FLASH Device) Image.
-CALL build -p ArmRealViewEbPkg\ArmRealViewEbPkg.dsc -a ARM -t %TARGET_TOOLS% -b %TARGET% %1 %2 %3 %4 %5 %6 %7 %8
-@if ERRORLEVEL 1 goto Exit
-
-@if /I "%1"=="CLEAN" goto Clean
-
-
-ECHO Patching ..\Debugger_scripts ...
-SET DEBUGGER_SCRIPT=Debugger_scripts
-@for /f %%a IN ('dir /b %DEBUGGER_SCRIPT%\*.inc %DEBUGGER_SCRIPT%\*.cmm') do (
-  @CALL replace %DEBUGGER_SCRIPT%\%%a %BUILD_ROOT%\%%a ZZZZZZ %BUILD_ROOT% WWWWWW  %WORKSPACE%
-)
-
-:Exit
-EXIT /B
-
-:Clean
+@REM Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>\r
+@REM This program and the accompanying materials\r
+@REM are licensed and made available under the terms and conditions of the BSD License\r
+@REM which accompanies this distribution.  The full text of the license may be found at\r
+@REM http://opensource.org/licenses/bsd-license.php\r
+@REM\r
+@REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+@REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+@REM\r
+\r
+@REM Example usage of this script. default is a DEBUG build\r
+@REM b\r
+@REM b clean\r
+@REM b release \r
+@REM b release clean\r
+@REM b -v -y build.log\r
+\r
+ECHO OFF\r
+@REM Setup Build environment. Sets WORKSPACE and puts build in path\r
+CALL ..\edksetup.bat\r
+\r
+@REM Set for tools chain. Currently ARMGCC\r
+SET TARGET_TOOLS=ARMGCC\r
+SET TARGET=DEBUG\r
+\r
+\r
+@if /I "%1"=="RELEASE" (\r
+\r
+  @REM If 1st argument is release set TARGET to RELEASE and shift arguments to remove it \r
+\r
+  SET TARGET=RELEASE\r
+\r
+  shift /1\r
+\r
+)\r
+\r
+\r
+SET BUILD_ROOT=%WORKSPACE%\Build\ArmRealViewEb\%TARGET%_%TARGET_TOOLS%\r
+\r
+@REM Build the ARM RealView EB firmware and creat an FD (FLASH Device) Image.\r
+CALL build -p ArmRealViewEbPkg\ArmRealViewEbPkg.dsc -a ARM -t %TARGET_TOOLS% -b %TARGET% %1 %2 %3 %4 %5 %6 %7 %8\r
+@if ERRORLEVEL 1 goto Exit\r
+\r
+@if /I "%1"=="CLEAN" goto Clean\r
+\r
+\r
+ECHO Patching ..\Debugger_scripts ...\r
+SET DEBUGGER_SCRIPT=Debugger_scripts\r
+@for /f %%a IN ('dir /b %DEBUGGER_SCRIPT%\*.inc %DEBUGGER_SCRIPT%\*.cmm') do (\r
+  @CALL replace %DEBUGGER_SCRIPT%\%%a %BUILD_ROOT%\%%a ZZZZZZ %BUILD_ROOT% WWWWWW  %WORKSPACE%\r
+)\r
+\r
+:Exit\r
+EXIT /B\r
+\r
+:Clean\r
index 880cbaf88b951649aa73d279ab352e8409529963..e33cd4cdcf267c374600b6cb2b355c9d22d20a7f 100644 (file)
@@ -1,28 +1,28 @@
-Copyright (c) 2011-2013 ARM Limited
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
-    * Redistributions of source code must retain the above copyright
-      notice, this list of conditions and the following disclaimer.
-    * Redistributions in binary form must reproduce the above copyright
-      notice, this list of conditions and the following disclaimer in
-      the documentation and/or other materials provided with the
-      distribution.
-    * Neither the name of ARM nor the names of its contributors may be
-      used to endorse or promote products derived from this software
-      without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
-TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+Copyright (c) 2011-2013 ARM Limited\r
+All rights reserved.\r
+\r
+Redistribution and use in source and binary forms, with or without\r
+modification, are permitted provided that the following conditions are\r
+met:\r
+\r
+    * Redistributions of source code must retain the above copyright\r
+      notice, this list of conditions and the following disclaimer.\r
+    * Redistributions in binary form must reproduce the above copyright\r
+      notice, this list of conditions and the following disclaimer in\r
+      the documentation and/or other materials provided with the\r
+      distribution.\r
+    * Neither the name of ARM nor the names of its contributors may be\r
+      used to endorse or promote products derived from this software\r
+      without specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
+IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\r
+TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\r
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\r
+HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\r
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED\r
+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
index 6aee571478a7b371a461c98fc1ec08195155d7f5..2ac8368b12d52c6175f10f0fd98280d23bd0d7ad 100644 (file)
@@ -1,96 +1,96 @@
-#
-# Makefile - build a UEFI boot image for booting from different exception levels.
-#
-# Copyright (C) 2011-2013 ARM Limited.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met:
-#
-#     * Redistributions of source code must retain the above copyright
-#        notice, this list of conditions and the following disclaimer.
-#     * Redistributions in binary form must reproduce the above copyright
-#       notice, this list of conditions and the following disclaimer in
-#       the documentation and/or other materials provided with the
-#       distribution.
-#     * Neither the name of ARM nor the names of its contributors may be
-#       used to endorse or promote products derived from this software
-#       without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
-# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-# This license can also be found in the LICENSE.TXT file.
-
-
-# VE
-PHYS_OFFSET    := 0x80000000
-UART_BASE      := 0x1c090000
-GIC_DIST_BASE  := 0x2c001000
-GIC_CPU_BASE   := 0x2c002000
-CNTFRQ         := 0x01800000   # 24Mhz
-
-BOOTLOADER     := boot.S
-LD_SCRIPT      := model.lds.S
-IMAGE_1                := uefi-bootstrap-el1.axf
-IMAGE_2                := uefi-bootstrap-el2.axf
-IMAGE_3                := uefi-bootstrap-el3.axf
-IMAGE_3F       := uefi-bootstrap-el3-foundation.axf
-
-
-CROSS_COMPILE  ?= aarch64-none-elf-
-CC             := $(CROSS_COMPILE)gcc
-LD             := $(CROSS_COMPILE)ld
-
-all: $(IMAGE_1) $(IMAGE_2) $(IMAGE_3) $(IMAGE_3F)
-
-clean:
-       rm -f *.axf *.o *.lds
-
-$(IMAGE_1): boot1.o model1.lds
-       $(LD) -o $@ --script=model1.lds
-
-$(IMAGE_2): boot2.o model2.lds
-       $(LD) -o $@ --script=model2.lds
-
-$(IMAGE_3): boot3.o model3.lds
-       $(LD) -o $@ --script=model3.lds
-
-$(IMAGE_3F): boot3f.o model3f.lds
-       $(LD) -o $@ --script=model3f.lds
-
-boot1.o: $(BOOTLOADER) Makefile
-       $(CC) $(CPPFLAGS) -DUART_BASE=$(UART_BASE) -DCNTFRQ=$(CNTFRQ) -DGIC_DIST_BASE=$(GIC_DIST_BASE) -DGIC_CPU_BASE=$(GIC_CPU_BASE) -DSTART_EL2=1 -DSTART_EL1=1 -c -o $@ $(BOOTLOADER)
-
-boot2.o: $(BOOTLOADER) Makefile
-       $(CC) $(CPPFLAGS) -DUART_BASE=$(UART_BASE) -DCNTFRQ=$(CNTFRQ) -DGIC_DIST_BASE=$(GIC_DIST_BASE) -DGIC_CPU_BASE=$(GIC_CPU_BASE) -DSTART_EL2=1 -c -o $@ $(BOOTLOADER)
-
-boot3.o: $(BOOTLOADER) Makefile
-       $(CC) $(CPPFLAGS) -DUART_BASE=$(UART_BASE) -DCNTFRQ=$(CNTFRQ) -DGIC_DIST_BASE=$(GIC_DIST_BASE) -DGIC_CPU_BASE=$(GIC_CPU_BASE) -c -o $@ $(BOOTLOADER)
-
-boot3f.o: $(BOOTLOADER) Makefile
-       $(CC) $(CPPFLAGS) -DUART_BASE=$(UART_BASE) -DCNTFRQ=$(CNTFRQ) -DGIC_DIST_BASE=$(GIC_DIST_BASE) -DGIC_CPU_BASE=$(GIC_CPU_BASE) -DFOUNDATION_MODEL=1 -c -o $@ $(BOOTLOADER)
-
-model1.lds: $(LD_SCRIPT) Makefile boot1.o
-       $(CC) $(CPPFLAGS) -DPHYS_OFFSET=$(PHYS_OFFSET) -DBOOT1 -E -P -C -o $@ $<
-
-model2.lds: $(LD_SCRIPT) Makefile boot2.o
-       $(CC) $(CPPFLAGS) -DPHYS_OFFSET=$(PHYS_OFFSET) -DBOOT2 -E -P -C -o $@ $<
-
-model3.lds: $(LD_SCRIPT) Makefile boot3.o
-       $(CC) $(CPPFLAGS) -DPHYS_OFFSET=$(PHYS_OFFSET) -DBOOT3 -E -P -C -o $@ $<
-
-model3f.lds: $(LD_SCRIPT) Makefile boot3f.o
-       $(CC) $(CPPFLAGS) -DPHYS_OFFSET=$(PHYS_OFFSET) -DBOOT3F -E -P -C -o $@ $<
-
-.PHONY: all clean
+#\r
+# Makefile - build a UEFI boot image for booting from different exception levels.\r
+#\r
+# Copyright (C) 2011-2013 ARM Limited.\r
+# All rights reserved.\r
+#\r
+# Redistribution and use in source and binary forms, with or without\r
+# modification, are permitted provided that the following conditions are\r
+# met:\r
+#\r
+#     * Redistributions of source code must retain the above copyright\r
+#        notice, this list of conditions and the following disclaimer.\r
+#     * Redistributions in binary form must reproduce the above copyright\r
+#       notice, this list of conditions and the following disclaimer in\r
+#       the documentation and/or other materials provided with the\r
+#       distribution.\r
+#     * Neither the name of ARM nor the names of its contributors may be\r
+#       used to endorse or promote products derived from this software\r
+#       without specific prior written permission.\r
+#\r
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
+# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\r
+# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\r
+# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\r
+# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\r
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED\r
+# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
+# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
+# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
+# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+#\r
+# This license can also be found in the LICENSE.TXT file.\r
+\r
+\r
+# VE\r
+PHYS_OFFSET    := 0x80000000\r
+UART_BASE      := 0x1c090000\r
+GIC_DIST_BASE  := 0x2c001000\r
+GIC_CPU_BASE   := 0x2c002000\r
+CNTFRQ         := 0x01800000   # 24Mhz\r
+\r
+BOOTLOADER     := boot.S\r
+LD_SCRIPT      := model.lds.S\r
+IMAGE_1                := uefi-bootstrap-el1.axf\r
+IMAGE_2                := uefi-bootstrap-el2.axf\r
+IMAGE_3                := uefi-bootstrap-el3.axf\r
+IMAGE_3F       := uefi-bootstrap-el3-foundation.axf\r
+\r
+\r
+CROSS_COMPILE  ?= aarch64-none-elf-\r
+CC             := $(CROSS_COMPILE)gcc\r
+LD             := $(CROSS_COMPILE)ld\r
+\r
+all: $(IMAGE_1) $(IMAGE_2) $(IMAGE_3) $(IMAGE_3F)\r
+\r
+clean:\r
+       rm -f *.axf *.o *.lds\r
+\r
+$(IMAGE_1): boot1.o model1.lds\r
+       $(LD) -o $@ --script=model1.lds\r
+\r
+$(IMAGE_2): boot2.o model2.lds\r
+       $(LD) -o $@ --script=model2.lds\r
+\r
+$(IMAGE_3): boot3.o model3.lds\r
+       $(LD) -o $@ --script=model3.lds\r
+\r
+$(IMAGE_3F): boot3f.o model3f.lds\r
+       $(LD) -o $@ --script=model3f.lds\r
+\r
+boot1.o: $(BOOTLOADER) Makefile\r
+       $(CC) $(CPPFLAGS) -DUART_BASE=$(UART_BASE) -DCNTFRQ=$(CNTFRQ) -DGIC_DIST_BASE=$(GIC_DIST_BASE) -DGIC_CPU_BASE=$(GIC_CPU_BASE) -DSTART_EL2=1 -DSTART_EL1=1 -c -o $@ $(BOOTLOADER)\r
+\r
+boot2.o: $(BOOTLOADER) Makefile\r
+       $(CC) $(CPPFLAGS) -DUART_BASE=$(UART_BASE) -DCNTFRQ=$(CNTFRQ) -DGIC_DIST_BASE=$(GIC_DIST_BASE) -DGIC_CPU_BASE=$(GIC_CPU_BASE) -DSTART_EL2=1 -c -o $@ $(BOOTLOADER)\r
+\r
+boot3.o: $(BOOTLOADER) Makefile\r
+       $(CC) $(CPPFLAGS) -DUART_BASE=$(UART_BASE) -DCNTFRQ=$(CNTFRQ) -DGIC_DIST_BASE=$(GIC_DIST_BASE) -DGIC_CPU_BASE=$(GIC_CPU_BASE) -c -o $@ $(BOOTLOADER)\r
+\r
+boot3f.o: $(BOOTLOADER) Makefile\r
+       $(CC) $(CPPFLAGS) -DUART_BASE=$(UART_BASE) -DCNTFRQ=$(CNTFRQ) -DGIC_DIST_BASE=$(GIC_DIST_BASE) -DGIC_CPU_BASE=$(GIC_CPU_BASE) -DFOUNDATION_MODEL=1 -c -o $@ $(BOOTLOADER)\r
+\r
+model1.lds: $(LD_SCRIPT) Makefile boot1.o\r
+       $(CC) $(CPPFLAGS) -DPHYS_OFFSET=$(PHYS_OFFSET) -DBOOT1 -E -P -C -o $@ $<\r
+\r
+model2.lds: $(LD_SCRIPT) Makefile boot2.o\r
+       $(CC) $(CPPFLAGS) -DPHYS_OFFSET=$(PHYS_OFFSET) -DBOOT2 -E -P -C -o $@ $<\r
+\r
+model3.lds: $(LD_SCRIPT) Makefile boot3.o\r
+       $(CC) $(CPPFLAGS) -DPHYS_OFFSET=$(PHYS_OFFSET) -DBOOT3 -E -P -C -o $@ $<\r
+\r
+model3f.lds: $(LD_SCRIPT) Makefile boot3f.o\r
+       $(CC) $(CPPFLAGS) -DPHYS_OFFSET=$(PHYS_OFFSET) -DBOOT3F -E -P -C -o $@ $<\r
+\r
+.PHONY: all clean\r
index f06106608a85e4b5dd87cb7d2afc3ad8e6b2f701..a4b0055c789a0a6c11855dee078eb94654218810 100644 (file)
-/*
- * boot.S - simple register setup code for junping to a second stage bootloader
- *
- * Copyright (C) 2011-2013 ARM Limited.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- *     * Redistributions of source code must retain the above copyright
- *        notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above copyright
- *       notice, this list of conditions and the following disclaimer in
- *       the documentation and/or other materials provided with the
- *       distribution.
- *     * Neither the name of ARM nor the names of its contributors may be
- *       used to endorse or promote products derived from this software
- *       without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
- * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
- * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
- * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
- * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This license can also be found in the LICENSE.TXT file.
- */
-
-       .text
-
-       .globl  _start
-
-.set LED_ADDR, 0x1c010008
-
-_start:
-       /*
-        * EL3 initialisation
-        */
-
-       // Set LED to show progress.
-       ldr     x1, =LED_ADDR
-       mov     w0, #0x1
-       str     w0, [x1]
-        dsb    sy
-
-#if defined START_EL2
-
-       mrs     x0, CurrentEL
-       cmp     x0, #0xc                        // EL3?
-       b.ne    start_ns                        // skip EL3 initialisation
-
-       mov     x0, #0x30                       // RES1
-       orr     x0, x0, #(1 << 0)               // Non-secure bit
-       orr     x0, x0, #(1 << 8)               // HVC enable
-       orr     x0, x0, #(1 << 10)              // 64-bit EL2
-       msr     scr_el3, x0
-
-       msr     cptr_el3, xzr                   // Disable copro. traps to EL3
-
-       ldr     x0, =CNTFRQ
-       msr     cntfrq_el0, x0
-
-       /*
-        * Check for the primary CPU to avoid a race on the distributor
-        * registers.
-        */
-       mrs     x0, mpidr_el1
-       tst     x0, #15
-       b.ne    1f                              // secondary CPU
-
-       ldr     x1, =GIC_DIST_BASE              // GICD_CTLR
-       mov     w0, #3                          // EnableGrp0 | EnableGrp1
-       str     w0, [x1]
-
-1:     ldr     x1, =GIC_DIST_BASE + 0x80       // GICD_IGROUPR
-       mov     w0, #~0                         // Grp1 interrupts
-       str     w0, [x1], #4
-       b.ne    2f                              // Only local interrupts for secondary CPUs
-       str     w0, [x1], #4
-       str     w0, [x1], #4
-
-2:     ldr     x1, =GIC_CPU_BASE               // GICC_CTLR
-       ldr     w0, [x1]
-       orr     w0, w0, #3                      // EnableGrp0 | EnableGrp1
-       str     w0, [x1]
-
-       mov     w0, #1 << 7                     // allow NS access to GICC_PMR
-       str     w0, [x1, #4]                    // GICC_PMR
-
-       msr     sctlr_el2, xzr
-
-#if defined START_EL1
-
-       /* Now setup our EL1. Controlled by EL2 config on Model */
-       mrs     x0, hcr_el2                     // Read EL2 Hypervisor configuration Register
-       orr     x0, x0, #(1 << 31)              // Set EL1 to be 64bit
-
-       // Send all interrupts to their respective Exception levels for EL2
-       bic     x0, x0, #(1 << 3)               // Disable virtual FIQ
-       bic     x0, x0, #(1 << 4)               // Disable virtual IRQ
-       bic     x0, x0, #(1 << 5)               // Disable virtual SError and Abort
-       msr     hcr_el2, x0                     // Write back our settings
-
-       /*
-        * Enable architected timer access
-        */
-       mrs     x0, cnthctl_el2
-       orr     x0, x0, #3                      // Enable EL1 access to timers
-       msr     cnthctl_el2, x0
-
-       mrs     x0, cntkctl_el1
-       orr     x0, x0, #3                      // EL0 access to counters
-       msr     cntkctl_el1, x0
-
-       /* Set ID regs */
-       mrs     x0, midr_el1
-       mrs     x1, mpidr_el1
-       msr     vpidr_el2, x0
-       msr     vmpidr_el2, x1
-
-       /* Coprocessor traps. */
-       mov     x0, #0x33ff
-       msr     cptr_el2, x0                    // Disable copro. traps to EL2
-
-       msr     hstr_el2, xzr                   // Disable CP15 traps to EL2
-
-#endif // START_EL1
-
-        /* Configure UART. Primary CPU only */
-       mrs     x4, mpidr_el1
-       tst     x4, #15
-       b.ne    1f
-
-       /*
-        * UART initialisation (38400 8N1)
-        */
-       ldr     x4, =UART_BASE                  // UART base
-       mov     w5, #0x10                       // ibrd
-       str     w5, [x4, #0x24]
-       mov     w5, #0xc300
-       orr     w5, w5, #0x0001                 // cr
-       str     w5, [x4, #0x30]
-
-       /*
-        * Prepare the switch to the EL2_SP2 mode from EL3
-        */
-1:     ldr     x0, =start_ns                   // Return after mode switch
-#if defined START_EL1
-       mov     x1, #0x3c5                      // EL1_SP1 | D | A | I | F
-#else
-       mov     x1, #0x3c9                      // EL2_SP2 | D | A | I | F
-#endif
-
-       msr     elr_el3, x0
-       msr     spsr_el3, x1
-       eret
-
-#endif // START_EL2
-
-
-start_ns:
-
-/*
- * We do not have NOR flash on the Foundation model. So run UEFI from RAM.
- * On the full model we use the NOR FLASH to store UEFI, so start there.
- */
-#if defined FOUNDATION_MODEL
-       mov     x0, #0xa0000000
-#else
-       mov     x0, #0x0
-#endif
-       br      x0
-
-       .ltorg
-
-       .org    0x200
+/*\r
+ * boot.S - simple register setup code for junping to a second stage bootloader\r
+ *\r
+ * Copyright (C) 2011-2013 ARM Limited.\r
+ * All rights reserved.\r
+ *\r
+ * Redistribution and use in source and binary forms, with or without\r
+ * modification, are permitted provided that the following conditions are\r
+ * met:\r
+ *\r
+ *     * Redistributions of source code must retain the above copyright\r
+ *        notice, this list of conditions and the following disclaimer.\r
+ *     * Redistributions in binary form must reproduce the above copyright\r
+ *       notice, this list of conditions and the following disclaimer in\r
+ *       the documentation and/or other materials provided with the\r
+ *       distribution.\r
+ *     * Neither the name of ARM nor the names of its contributors may be\r
+ *       used to endorse or promote products derived from this software\r
+ *       without specific prior written permission.\r
+ *\r
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
+ * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\r
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\r
+ * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\r
+ * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\r
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED\r
+ * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+ *\r
+ * This license can also be found in the LICENSE.TXT file.\r
+ */\r
+\r
+       .text\r
+\r
+       .globl  _start\r
+\r
+.set LED_ADDR, 0x1c010008\r
+\r
+_start:\r
+       /*\r
+        * EL3 initialisation\r
+        */\r
+\r
+       // Set LED to show progress.\r
+       ldr     x1, =LED_ADDR\r
+       mov     w0, #0x1\r
+       str     w0, [x1]\r
+        dsb    sy\r
+\r
+#if defined START_EL2\r
+\r
+       mrs     x0, CurrentEL\r
+       cmp     x0, #0xc                        // EL3?\r
+       b.ne    start_ns                        // skip EL3 initialisation\r
+\r
+       mov     x0, #0x30                       // RES1\r
+       orr     x0, x0, #(1 << 0)               // Non-secure bit\r
+       orr     x0, x0, #(1 << 8)               // HVC enable\r
+       orr     x0, x0, #(1 << 10)              // 64-bit EL2\r
+       msr     scr_el3, x0\r
+\r
+       msr     cptr_el3, xzr                   // Disable copro. traps to EL3\r
+\r
+       ldr     x0, =CNTFRQ\r
+       msr     cntfrq_el0, x0\r
+\r
+       /*\r
+        * Check for the primary CPU to avoid a race on the distributor\r
+        * registers.\r
+        */\r
+       mrs     x0, mpidr_el1\r
+       tst     x0, #15\r
+       b.ne    1f                              // secondary CPU\r
+\r
+       ldr     x1, =GIC_DIST_BASE              // GICD_CTLR\r
+       mov     w0, #3                          // EnableGrp0 | EnableGrp1\r
+       str     w0, [x1]\r
+\r
+1:     ldr     x1, =GIC_DIST_BASE + 0x80       // GICD_IGROUPR\r
+       mov     w0, #~0                         // Grp1 interrupts\r
+       str     w0, [x1], #4\r
+       b.ne    2f                              // Only local interrupts for secondary CPUs\r
+       str     w0, [x1], #4\r
+       str     w0, [x1], #4\r
+\r
+2:     ldr     x1, =GIC_CPU_BASE               // GICC_CTLR\r
+       ldr     w0, [x1]\r
+       orr     w0, w0, #3                      // EnableGrp0 | EnableGrp1\r
+       str     w0, [x1]\r
+\r
+       mov     w0, #1 << 7                     // allow NS access to GICC_PMR\r
+       str     w0, [x1, #4]                    // GICC_PMR\r
+\r
+       msr     sctlr_el2, xzr\r
+\r
+#if defined START_EL1\r
+\r
+       /* Now setup our EL1. Controlled by EL2 config on Model */\r
+       mrs     x0, hcr_el2                     // Read EL2 Hypervisor configuration Register\r
+       orr     x0, x0, #(1 << 31)              // Set EL1 to be 64bit\r
+\r
+       // Send all interrupts to their respective Exception levels for EL2\r
+       bic     x0, x0, #(1 << 3)               // Disable virtual FIQ\r
+       bic     x0, x0, #(1 << 4)               // Disable virtual IRQ\r
+       bic     x0, x0, #(1 << 5)               // Disable virtual SError and Abort\r
+       msr     hcr_el2, x0                     // Write back our settings\r
+\r
+       /*\r
+        * Enable architected timer access\r
+        */\r
+       mrs     x0, cnthctl_el2\r
+       orr     x0, x0, #3                      // Enable EL1 access to timers\r
+       msr     cnthctl_el2, x0\r
+\r
+       mrs     x0, cntkctl_el1\r
+       orr     x0, x0, #3                      // EL0 access to counters\r
+       msr     cntkctl_el1, x0\r
+\r
+       /* Set ID regs */\r
+       mrs     x0, midr_el1\r
+       mrs     x1, mpidr_el1\r
+       msr     vpidr_el2, x0\r
+       msr     vmpidr_el2, x1\r
+\r
+       /* Coprocessor traps. */\r
+       mov     x0, #0x33ff\r
+       msr     cptr_el2, x0                    // Disable copro. traps to EL2\r
+\r
+       msr     hstr_el2, xzr                   // Disable CP15 traps to EL2\r
+\r
+#endif // START_EL1\r
+\r
+        /* Configure UART. Primary CPU only */\r
+       mrs     x4, mpidr_el1\r
+       tst     x4, #15\r
+       b.ne    1f\r
+\r
+       /*\r
+        * UART initialisation (38400 8N1)\r
+        */\r
+       ldr     x4, =UART_BASE                  // UART base\r
+       mov     w5, #0x10                       // ibrd\r
+       str     w5, [x4, #0x24]\r
+       mov     w5, #0xc300\r
+       orr     w5, w5, #0x0001                 // cr\r
+       str     w5, [x4, #0x30]\r
+\r
+       /*\r
+        * Prepare the switch to the EL2_SP2 mode from EL3\r
+        */\r
+1:     ldr     x0, =start_ns                   // Return after mode switch\r
+#if defined START_EL1\r
+       mov     x1, #0x3c5                      // EL1_SP1 | D | A | I | F\r
+#else\r
+       mov     x1, #0x3c9                      // EL2_SP2 | D | A | I | F\r
+#endif\r
+\r
+       msr     elr_el3, x0\r
+       msr     spsr_el3, x1\r
+       eret\r
+\r
+#endif // START_EL2\r
+\r
+\r
+start_ns:\r
+\r
+/*\r
+ * We do not have NOR flash on the Foundation model. So run UEFI from RAM.\r
+ * On the full model we use the NOR FLASH to store UEFI, so start there.\r
+ */\r
+#if defined FOUNDATION_MODEL\r
+       mov     x0, #0xa0000000\r
+#else\r
+       mov     x0, #0x0\r
+#endif\r
+       br      x0\r
+\r
+       .ltorg\r
+\r
+       .org    0x200\r
index f554bd5d4d4da0181ba5fe1d733db0d52d1df6a2..cc719c56b9921e0800cd51aba24110c860fbc877 100644 (file)
@@ -1,77 +1,77 @@
-/*
- * model.lds.S - simple linker script for stand-alone Linux booting
- *
- * Copyright (C) 2011, 2012 ARM Limited.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- *     * Redistributions of source code must retain the above copyright
- *        notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above copyright
- *       notice, this list of conditions and the following disclaimer in
- *       the documentation and/or other materials provided with the
- *       distribution.
- *     * Neither the name of ARM nor the names of its contributors may be
- *       used to endorse or promote products derived from this software
- *       without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
- * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
- * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
- * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
- * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This license can also be found in the LICENSE.TXT file.
- */
-
-OUTPUT_FORMAT("elf64-littleaarch64")
-OUTPUT_ARCH(aarch64)
-TARGET(binary)
-
-#ifdef BOOT1
-INPUT(./boot1.o)
-#endif
-
-#ifdef BOOT2
-INPUT(./boot2.o)
-#endif
-
-#ifdef BOOT3
-INPUT(./boot3.o)
-#endif
-
-#ifdef BOOT3F
-INPUT(./boot3f.o)
-#endif
-
-SECTIONS
-{
-       . = PHYS_OFFSET;
-#ifdef BOOT1
-       .text : { boot1.o }
-#endif
-
-#ifdef BOOT2
-       .text : { boot2.o }
-#endif
-
-#ifdef BOOT3
-       .text : { boot3.o }
-#endif
-
-#ifdef BOOT3F
-       .text : { boot3f.o }
-#endif
-
-       .data : { *(.data) }
-       .bss : { *(.bss) }
-}
+/*\r
+ * model.lds.S - simple linker script for stand-alone Linux booting\r
+ *\r
+ * Copyright (C) 2011, 2012 ARM Limited.\r
+ * All rights reserved.\r
+ *\r
+ * Redistribution and use in source and binary forms, with or without\r
+ * modification, are permitted provided that the following conditions are\r
+ * met:\r
+ *\r
+ *     * Redistributions of source code must retain the above copyright\r
+ *        notice, this list of conditions and the following disclaimer.\r
+ *     * Redistributions in binary form must reproduce the above copyright\r
+ *       notice, this list of conditions and the following disclaimer in\r
+ *       the documentation and/or other materials provided with the\r
+ *       distribution.\r
+ *     * Neither the name of ARM nor the names of its contributors may be\r
+ *       used to endorse or promote products derived from this software\r
+ *       without specific prior written permission.\r
+ *\r
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
+ * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\r
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\r
+ * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\r
+ * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\r
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED\r
+ * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+ *\r
+ * This license can also be found in the LICENSE.TXT file.\r
+ */\r
+\r
+OUTPUT_FORMAT("elf64-littleaarch64")\r
+OUTPUT_ARCH(aarch64)\r
+TARGET(binary)\r
+\r
+#ifdef BOOT1\r
+INPUT(./boot1.o)\r
+#endif\r
+\r
+#ifdef BOOT2\r
+INPUT(./boot2.o)\r
+#endif\r
+\r
+#ifdef BOOT3\r
+INPUT(./boot3.o)\r
+#endif\r
+\r
+#ifdef BOOT3F\r
+INPUT(./boot3f.o)\r
+#endif\r
+\r
+SECTIONS\r
+{\r
+       . = PHYS_OFFSET;\r
+#ifdef BOOT1\r
+       .text : { boot1.o }\r
+#endif\r
+\r
+#ifdef BOOT2\r
+       .text : { boot2.o }\r
+#endif\r
+\r
+#ifdef BOOT3\r
+       .text : { boot3.o }\r
+#endif\r
+\r
+#ifdef BOOT3F\r
+       .text : { boot3f.o }\r
+#endif\r
+\r
+       .data : { *(.data) }\r
+       .bss : { *(.bss) }\r
+}\r
index ecc1a51100eab4aa06d0e4b96e5f6929133e0de3..56272852651fc9872c70618afa90af4a642f2243 100644 (file)
@@ -1,88 +1,88 @@
-<h1>AArch64 UEFI bootstraps</h1>
-
-<p>Copyright (c) 2011-2013 ARM Limited. All rights reserved.
-See the <code>LICENSE.TXT</code> file for more information.</p>
-
-<p>Contents:</p>
-
-<ul>
-<li>Introduction</li>
-<li>Build</li>
-<li>Use on ARMv8 RTSM and FVP models</li>
-<li>Use on ARMv8 Foundation model</li>
-</ul>
-
-<h2>Introduction</h2>
-
-<p>A bootstrap can be used to change the model state, like the Exception
-Level (EL), before executing the UEFI binary.</p>
-
-<p>For the ARMv8 RTSM and FVP models this can be used to show/test the UEFI binary
-starting at different exception levels. The ARMv8 models start at EL3 by
-default.</p>
-
-<p>In the case of the Foundation model a bootstrap is required to jump to the
-UEFI binary as loaded in RAM. This is required as the Foundation model cannot
-load and execute UEFI binaries directly. The Foundation model can only load and
-execute ELF binaries.</p>
-
-<h2>Build</h2>
-
-<p>Build the bootstraps using a AArch64 GCC cross-compiler. By default the
-<code>Makefile</code> is configured to assume a GCC bare-metal toolchain:</p>
-
-<pre><code>PATH=$PATH:&lt;path/to/baremetal-tools/bin/&gt; make clean
-PATH=$PATH:&lt;path/to/baremetal-tools/bin/&gt; make
-</code></pre>
-
-<p>To build the bootstraps with a Linux GCC toolchain use the following
-commands:</p>
-
-<pre><code>PATH=$PATH:&lt;path/to/aarch64-linux-gnu-tools/bin/&gt; make clean
-PATH=$PATH:&lt;path/to/aarch64-linux-gnu-tools/bin/&gt; CROSS_COMPILE=&lt;gcc-prefix&gt; make
-</code></pre>
-
-<p>The <code>gcc-prefix</code> depends on the specific toolchain distribution used. It can be
-"aarch64-linux-gnu-" for example.</p>
-
-<p>This will result in four <code>axf</code> files:</p>
-
-<ul>
-<li><p>uefi-bootstrap-el3 : The bootstrap jumps to the UEFI code in FLASH without
-                 changing anything.</p></li>
-<li><p>uefi-bootstrap-el2 : Setup EL3 and switch the model to EL2 before jumping to the
-                 UEFI code in FLASH.</p></li>
-<li><p>uefi-bootstrap-el1 : Setup EL3 and prepare to run at non-secure EL1. Switch to
-                 non-secure EL1 and run the UEFI code in FLASH.</p></li>
-<li><p>uefi-bootstrap-el3-foundation : The bootstrap jumps to the UEFI code in RAM
-                 without changing anything. Only to be used with the
-                 Foundation model. The Foundation model does not have
-                 non-secure memory at address <code>0x0</code> and thus the UEFI image
-                 should be pre-loaded into non-secure RAM at address
-                 <code>0xA0000000</code>.</p></li>
-</ul>
-
-<h2>Use on ARMv8 RTSM and FVP models</h2>
-
-<p>Add the '-a' option to the model start script and point to the required
-bootstrap:</p>
-
-<pre><code>&lt; ... model start script as described in top-level readme file ... &gt;
- -a &lt;path/to/bootstrap-binary-file&gt;
-</code></pre>
-
-<p>NOTE: The Foundation model bootstrap should not be used with these models.</p>
-
-<h2>Use on ARMv8 Foundation model</h2>
-
-<p>The Foundation model takes an option for an ELF file to be loaded as well as an
-option to load a binary data blob into RAM. This can be used to run UEFI in the
-following manner:</p>
-
-<pre><code>&lt;PATH_TO_INSTALLED_FOUNDATION_MODEL&gt;/Foundation_v8 --cores=2 --visualization
-  --image=uefi-bootstrap-el3-foundation.axf --nsdata=RTSM_VE_FOUNDATIONV8_EFI.fd@0xA0000000
-</code></pre>
-
-<p>NOTE: The RTSM version of the bootstraps and UEFI image will not work as
-      expected on the Foundation model. Foundation model specific versions
-      should be used.</p>
+<h1>AArch64 UEFI bootstraps</h1>\r
+\r
+<p>Copyright (c) 2011-2013 ARM Limited. All rights reserved.\r
+See the <code>LICENSE.TXT</code> file for more information.</p>\r
+\r
+<p>Contents:</p>\r
+\r
+<ul>\r
+<li>Introduction</li>\r
+<li>Build</li>\r
+<li>Use on ARMv8 RTSM and FVP models</li>\r
+<li>Use on ARMv8 Foundation model</li>\r
+</ul>\r
+\r
+<h2>Introduction</h2>\r
+\r
+<p>A bootstrap can be used to change the model state, like the Exception\r
+Level (EL), before executing the UEFI binary.</p>\r
+\r
+<p>For the ARMv8 RTSM and FVP models this can be used to show/test the UEFI binary\r
+starting at different exception levels. The ARMv8 models start at EL3 by\r
+default.</p>\r
+\r
+<p>In the case of the Foundation model a bootstrap is required to jump to the\r
+UEFI binary as loaded in RAM. This is required as the Foundation model cannot\r
+load and execute UEFI binaries directly. The Foundation model can only load and\r
+execute ELF binaries.</p>\r
+\r
+<h2>Build</h2>\r
+\r
+<p>Build the bootstraps using a AArch64 GCC cross-compiler. By default the\r
+<code>Makefile</code> is configured to assume a GCC bare-metal toolchain:</p>\r
+\r
+<pre><code>PATH=$PATH:&lt;path/to/baremetal-tools/bin/&gt; make clean\r
+PATH=$PATH:&lt;path/to/baremetal-tools/bin/&gt; make\r
+</code></pre>\r
+\r
+<p>To build the bootstraps with a Linux GCC toolchain use the following\r
+commands:</p>\r
+\r
+<pre><code>PATH=$PATH:&lt;path/to/aarch64-linux-gnu-tools/bin/&gt; make clean\r
+PATH=$PATH:&lt;path/to/aarch64-linux-gnu-tools/bin/&gt; CROSS_COMPILE=&lt;gcc-prefix&gt; make\r
+</code></pre>\r
+\r
+<p>The <code>gcc-prefix</code> depends on the specific toolchain distribution used. It can be\r
+"aarch64-linux-gnu-" for example.</p>\r
+\r
+<p>This will result in four <code>axf</code> files:</p>\r
+\r
+<ul>\r
+<li><p>uefi-bootstrap-el3 : The bootstrap jumps to the UEFI code in FLASH without\r
+                 changing anything.</p></li>\r
+<li><p>uefi-bootstrap-el2 : Setup EL3 and switch the model to EL2 before jumping to the\r
+                 UEFI code in FLASH.</p></li>\r
+<li><p>uefi-bootstrap-el1 : Setup EL3 and prepare to run at non-secure EL1. Switch to\r
+                 non-secure EL1 and run the UEFI code in FLASH.</p></li>\r
+<li><p>uefi-bootstrap-el3-foundation : The bootstrap jumps to the UEFI code in RAM\r
+                 without changing anything. Only to be used with the\r
+                 Foundation model. The Foundation model does not have\r
+                 non-secure memory at address <code>0x0</code> and thus the UEFI image\r
+                 should be pre-loaded into non-secure RAM at address\r
+                 <code>0xA0000000</code>.</p></li>\r
+</ul>\r
+\r
+<h2>Use on ARMv8 RTSM and FVP models</h2>\r
+\r
+<p>Add the '-a' option to the model start script and point to the required\r
+bootstrap:</p>\r
+\r
+<pre><code>&lt; ... model start script as described in top-level readme file ... &gt;\r
+ -a &lt;path/to/bootstrap-binary-file&gt;\r
+</code></pre>\r
+\r
+<p>NOTE: The Foundation model bootstrap should not be used with these models.</p>\r
+\r
+<h2>Use on ARMv8 Foundation model</h2>\r
+\r
+<p>The Foundation model takes an option for an ELF file to be loaded as well as an\r
+option to load a binary data blob into RAM. This can be used to run UEFI in the\r
+following manner:</p>\r
+\r
+<pre><code>&lt;PATH_TO_INSTALLED_FOUNDATION_MODEL&gt;/Foundation_v8 --cores=2 --visualization\r
+  --image=uefi-bootstrap-el3-foundation.axf --nsdata=RTSM_VE_FOUNDATIONV8_EFI.fd@0xA0000000\r
+</code></pre>\r
+\r
+<p>NOTE: The RTSM version of the bootstraps and UEFI image will not work as\r
+      expected on the Foundation model. Foundation model specific versions\r
+      should be used.</p>\r
index 1d4b17455797dadd6beb4b868e4219f7cf9916a3..24a1bbee3d521355462648789d54366d1120ccff 100644 (file)
@@ -1,92 +1,92 @@
-AArch64 UEFI bootstraps
-=======================
-
-Copyright (c) 2011-2013 ARM Limited. All rights reserved.
-See the `LICENSE.TXT` file for more information.
-
-Contents:
-
-* Introduction
-* Build
-* Use on ARMv8 RTSM and FVP models
-* Use on ARMv8 Foundation model
-
-
-Introduction
-------------
-
-A bootstrap can be used to change the model state, like the Exception
-Level (EL), before executing the UEFI binary.
-
-For the ARMv8 RTSM and FVP models this can be used to show/test the UEFI binary
-starting at different exception levels. The ARMv8 models start at EL3 by
-default.
-
-In the case of the Foundation model a bootstrap is required to jump to the
-UEFI binary as loaded in RAM. This is required as the Foundation model cannot
-load and execute UEFI binaries directly. The Foundation model can only load and
-execute ELF binaries.
-
-
-Build
------
-
-Build the bootstraps using a AArch64 GCC cross-compiler. By default the
-`Makefile` is configured to assume a GCC bare-metal toolchain:
-
-    PATH=$PATH:<path/to/baremetal-tools/bin/> make clean
-    PATH=$PATH:<path/to/baremetal-tools/bin/> make
-
-To build the bootstraps with a Linux GCC toolchain use the following
-commands:
-
-    PATH=$PATH:<path/to/aarch64-linux-gnu-tools/bin/> make clean
-    PATH=$PATH:<path/to/aarch64-linux-gnu-tools/bin/> CROSS_COMPILE=<gcc-prefix> make
-
-The `gcc-prefix` depends on the specific toolchain distribution used. It can be
-"aarch64-linux-gnu-" for example.
-
-This will result in four `axf` files:
-
-* uefi-bootstrap-el3 : The bootstrap jumps to the UEFI code in FLASH without
-                     changing anything.
-
-* uefi-bootstrap-el2 : Setup EL3 and switch the model to EL2 before jumping to the
-                     UEFI code in FLASH.
-
-* uefi-bootstrap-el1 : Setup EL3 and prepare to run at non-secure EL1. Switch to
-                     non-secure EL1 and run the UEFI code in FLASH.
-
-* uefi-bootstrap-el3-foundation : The bootstrap jumps to the UEFI code in RAM
-                     without changing anything. Only to be used with the
-                     Foundation model. The Foundation model does not have
-                     non-secure memory at address `0x0` and thus the UEFI image
-                     should be pre-loaded into non-secure RAM at address
-                     `0xA0000000`.
-
-
-Use on ARMv8 RTSM and FVP models
---------------------------------
-
-Add the '-a' option to the model start script and point to the required
-bootstrap:
-
-    < ... model start script as described in top-level readme file ... >
-     -a <path/to/bootstrap-binary-file>
-
-NOTE: The Foundation model bootstrap should not be used with these models.
-
-
-Use on ARMv8 Foundation model
------------------------------
-
-The Foundation model takes an option for an ELF file to be loaded as well as an
-option to load a binary data blob into RAM. This can be used to run UEFI in the
-following manner:
-
-    <PATH_TO_INSTALLED_FOUNDATION_MODEL>/Foundation_v8 --cores=2 --visualization
-      --image=uefi-bootstrap-el3-foundation.axf --nsdata=RTSM_VE_FOUNDATIONV8_EFI.fd@0xA0000000
-
-NOTE: The RTSM version of the bootstraps and UEFI image will not work as
-      expected on the Foundation model. Foundation model specific versions
-      should be used.
+AArch64 UEFI bootstraps\r
+=======================\r
+\r
+Copyright (c) 2011-2013 ARM Limited. All rights reserved.\r
+See the `LICENSE.TXT` file for more information.\r
+\r
+Contents:\r
+\r
+* Introduction\r
+* Build\r
+* Use on ARMv8 RTSM and FVP models\r
+* Use on ARMv8 Foundation model\r
+\r
+\r
+Introduction\r
+------------\r
+\r
+A bootstrap can be used to change the model state, like the Exception\r
+Level (EL), before executing the UEFI binary.\r
+\r
+For the ARMv8 RTSM and FVP models this can be used to show/test the UEFI binary\r
+starting at different exception levels. The ARMv8 models start at EL3 by\r
+default.\r
+\r
+In the case of the Foundation model a bootstrap is required to jump to the\r
+UEFI binary as loaded in RAM. This is required as the Foundation model cannot\r
+load and execute UEFI binaries directly. The Foundation model can only load and\r
+execute ELF binaries.\r
+\r
+\r
+Build\r
+-----\r
+\r
+Build the bootstraps using a AArch64 GCC cross-compiler. By default the\r
+`Makefile` is configured to assume a GCC bare-metal toolchain:\r
+\r
+    PATH=$PATH:<path/to/baremetal-tools/bin/> make clean\r
+    PATH=$PATH:<path/to/baremetal-tools/bin/> make\r
+\r
+To build the bootstraps with a Linux GCC toolchain use the following\r
+commands:\r
+\r
+    PATH=$PATH:<path/to/aarch64-linux-gnu-tools/bin/> make clean\r
+    PATH=$PATH:<path/to/aarch64-linux-gnu-tools/bin/> CROSS_COMPILE=<gcc-prefix> make\r
+\r
+The `gcc-prefix` depends on the specific toolchain distribution used. It can be\r
+"aarch64-linux-gnu-" for example.\r
+\r
+This will result in four `axf` files:\r
+\r
+* uefi-bootstrap-el3 : The bootstrap jumps to the UEFI code in FLASH without\r
+                     changing anything.\r
+\r
+* uefi-bootstrap-el2 : Setup EL3 and switch the model to EL2 before jumping to the\r
+                     UEFI code in FLASH.\r
+\r
+* uefi-bootstrap-el1 : Setup EL3 and prepare to run at non-secure EL1. Switch to\r
+                     non-secure EL1 and run the UEFI code in FLASH.\r
+\r
+* uefi-bootstrap-el3-foundation : The bootstrap jumps to the UEFI code in RAM\r
+                     without changing anything. Only to be used with the\r
+                     Foundation model. The Foundation model does not have\r
+                     non-secure memory at address `0x0` and thus the UEFI image\r
+                     should be pre-loaded into non-secure RAM at address\r
+                     `0xA0000000`.\r
+\r
+\r
+Use on ARMv8 RTSM and FVP models\r
+--------------------------------\r
+\r
+Add the '-a' option to the model start script and point to the required\r
+bootstrap:\r
+\r
+    < ... model start script as described in top-level readme file ... >\r
+     -a <path/to/bootstrap-binary-file>\r
+\r
+NOTE: The Foundation model bootstrap should not be used with these models.\r
+\r
+\r
+Use on ARMv8 Foundation model\r
+-----------------------------\r
+\r
+The Foundation model takes an option for an ELF file to be loaded as well as an\r
+option to load a binary data blob into RAM. This can be used to run UEFI in the\r
+following manner:\r
+\r
+    <PATH_TO_INSTALLED_FOUNDATION_MODEL>/Foundation_v8 --cores=2 --visualization\r
+      --image=uefi-bootstrap-el3-foundation.axf --nsdata=RTSM_VE_FOUNDATIONV8_EFI.fd@0xA0000000\r
+\r
+NOTE: The RTSM version of the bootstraps and UEFI image will not work as\r
+      expected on the Foundation model. Foundation model specific versions\r
+      should be used.\r
index ff1db2f6e492ceaee132450ab7427f5db9da1938..dbb827e96d40c134711a01e813bb9a45e1780020 100644 (file)
@@ -95,7 +95,7 @@ class DebugInfoTable:
             if edk2_debugger.is_aarch64(self.ec):\r
                 section = firmware_volume.EfiSectionPE64(self.ec, debug_info[0])\r
             else:\r
-                section = firmware_volume.EfiSectionPE32(self.ec, debug_info[0])
+                section = firmware_volume.EfiSectionPE32(self.ec, debug_info[0])\r
        \r
             try:\r
                 edk2_debugger.load_symbol_from_file(self.ec, section.get_debug_filepath(), section.get_debug_elfbase(), verbose)\r
@@ -151,13 +151,13 @@ class SystemTable:
     def get_configuration_table(self, conf_table_guid):\r
         if edk2_debugger.is_aarch64(self.ec):\r
             # Number of configuration Table entry\r
-            conf_table_entry_count = self.ec.getMemoryService().readMemory32(self.system_table_base + 0x68)
+            conf_table_entry_count = self.ec.getMemoryService().readMemory32(self.system_table_base + 0x68)\r
 \r
             # Get location of the Configuration Table entries\r
             conf_table_offset = self.ec.getMemoryService().readMemory64(self.system_table_base + 0x70)\r
         else:\r
             # Number of configuration Table entry\r
-            conf_table_entry_count = self.ec.getMemoryService().readMemory32(self.system_table_base + 0x40)
+            conf_table_entry_count = self.ec.getMemoryService().readMemory32(self.system_table_base + 0x40)\r
 \r
             # Get location of the Configuration Table entries\r
             conf_table_offset = self.ec.getMemoryService().readMemory32(self.system_table_base + 0x44)\r
index 6299a84799dff9c9086d4ee59e7d777960feb3f4..c691af69d76f93b5ed0cf01772b628dcdb6d9638 100644 (file)
@@ -1,21 +1,21 @@
-//
-// Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
-//  
-//  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.
-//
-error = continue
-unload
-error = abort
-
-setreg @CP15_CONTROL = 0x0005107E
-setreg @pc=0x80008208
-setreg @cpsr=0x000000D3
-dis/D
-readfile,raw,nowarn "ZZZZZZ/FV/BEAGLEBOARD_EFI.fd"=0x80008000
-
+//\r
+// Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+//  \r
+//  This program and the accompanying materials\r
+//  are licensed and made available under the terms and conditions of the BSD License\r
+//  which accompanies this distribution.  The full text of the license may be found at\r
+//  http://opensource.org/licenses/bsd-license.php\r
+//\r
+//  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+//  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+//\r
+error = continue\r
+unload\r
+error = abort\r
+\r
+setreg @CP15_CONTROL = 0x0005107E\r
+setreg @pc=0x80008208\r
+setreg @cpsr=0x000000D3\r
+dis/D\r
+readfile,raw,nowarn "ZZZZZZ/FV/BEAGLEBOARD_EFI.fd"=0x80008000\r
+\r
index ea5f8ec15fbdbd815864de8d49afea0c3def81bd..ba4190d56843ef3016b845e14c10be74280cbdfc 100644 (file)
@@ -1,67 +1,67 @@
-//
-// Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
-//  
-//  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.
-//
-
-error = continue
-unload
-error = abort
-
-setreg @CP15_CONTROL = 0x0005107E
-setreg @cpsr=0x000000D3
-
-; General clock settings.
-setmem /32 0x48307270=0x00000080
-setmem /32 0x48306D40=0x00000003
-setmem /32 0x48005140=0x03020A50
-
-;Clock configuration
-setmem /32 0x48004A40=0x0000030A
-setmem /32 0x48004C40=0x00000015
-
-;DPLL3 (Core) settings
-setmem /32 0x48004D00=0x00370037
-setmem /32 0x48004D30=0x00000000
-setmem /32 0x48004D40=0x094C0C00
-
-;DPLL4 (Peripheral) settings
-setmem /32 0x48004D00=0x00370037
-setmem /32 0x48004D30=0x00000000
-setmem /32 0x48004D44=0x0001B00C
-setmem /32 0x48004D48=0x00000009
-
-;DPLL1 (MPU) settings
-setmem /32 0x48004904=0x00000037
-setmem /32 0x48004934=0x00000000
-setmem /32 0x48004940=0x0011F40C
-setmem /32 0x48004944=0x00000001
-setmem /32 0x48004948=0x00000000
-
-;RAM setup.
-setmem /16 0x6D000010=0x0000
-setmem /16 0x6D000040=0x0001
-setmem /16 0x6D000044=0x0100
-setmem /16 0x6D000048=0x0000
-setmem /32 0x6D000060=0x0000000A
-setmem /32 0x6D000070=0x00000081
-setmem /16 0x6D000040=0x0003
-setmem /32 0x6D000080=0x02D04011
-setmem /16 0x6D000084=0x0032
-setmem /16 0x6D00008C=0x0000
-setmem /32 0x6D00009C=0xBA9DC4C6
-setmem /32 0x6D0000A0=0x00012522
-setmem /32 0x6D0000A4=0x0004E201
-setmem /16 0x6D000040=0x0003
-setmem /32 0x6D0000B0=0x02D04011
-setmem /16 0x6D0000B4=0x0032
-setmem /16 0x6D0000BC=0x0000
-setmem /32 0x6D0000C4=0xBA9DC4C6
-setmem /32 0x6D0000C8=0x00012522
+//\r
+// Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+//  \r
+//  This program and the accompanying materials\r
+//  are licensed and made available under the terms and conditions of the BSD License\r
+//  which accompanies this distribution.  The full text of the license may be found at\r
+//  http://opensource.org/licenses/bsd-license.php\r
+//\r
+//  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+//  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+//\r
+\r
+error = continue\r
+unload\r
+error = abort\r
+\r
+setreg @CP15_CONTROL = 0x0005107E\r
+setreg @cpsr=0x000000D3\r
+\r
+; General clock settings.\r
+setmem /32 0x48307270=0x00000080\r
+setmem /32 0x48306D40=0x00000003\r
+setmem /32 0x48005140=0x03020A50\r
+\r
+;Clock configuration\r
+setmem /32 0x48004A40=0x0000030A\r
+setmem /32 0x48004C40=0x00000015\r
+\r
+;DPLL3 (Core) settings\r
+setmem /32 0x48004D00=0x00370037\r
+setmem /32 0x48004D30=0x00000000\r
+setmem /32 0x48004D40=0x094C0C00\r
+\r
+;DPLL4 (Peripheral) settings\r
+setmem /32 0x48004D00=0x00370037\r
+setmem /32 0x48004D30=0x00000000\r
+setmem /32 0x48004D44=0x0001B00C\r
+setmem /32 0x48004D48=0x00000009\r
+\r
+;DPLL1 (MPU) settings\r
+setmem /32 0x48004904=0x00000037\r
+setmem /32 0x48004934=0x00000000\r
+setmem /32 0x48004940=0x0011F40C\r
+setmem /32 0x48004944=0x00000001\r
+setmem /32 0x48004948=0x00000000\r
+\r
+;RAM setup.\r
+setmem /16 0x6D000010=0x0000\r
+setmem /16 0x6D000040=0x0001\r
+setmem /16 0x6D000044=0x0100\r
+setmem /16 0x6D000048=0x0000\r
+setmem /32 0x6D000060=0x0000000A\r
+setmem /32 0x6D000070=0x00000081\r
+setmem /16 0x6D000040=0x0003\r
+setmem /32 0x6D000080=0x02D04011\r
+setmem /16 0x6D000084=0x0032\r
+setmem /16 0x6D00008C=0x0000\r
+setmem /32 0x6D00009C=0xBA9DC4C6\r
+setmem /32 0x6D0000A0=0x00012522\r
+setmem /32 0x6D0000A4=0x0004E201\r
+setmem /16 0x6D000040=0x0003\r
+setmem /32 0x6D0000B0=0x02D04011\r
+setmem /16 0x6D0000B4=0x0032\r
+setmem /16 0x6D0000BC=0x0000\r
+setmem /32 0x6D0000C4=0xBA9DC4C6\r
+setmem /32 0x6D0000C8=0x00012522\r
 setmem /32 0x6D0000D4=0x0004E201
\ No newline at end of file
index d7a617afd22b18d09f66ddc2a839a0691cc81ab1..1bae1727633daf7ad0774d46397a9810f6f0f3e1 100644 (file)
@@ -139,27 +139,27 @@ valid_pe_header:
   )\r
   RETURN 0\r
 \r
-get_file_string:
-  ENTRY &stringOffset
-
-  local &string
-
-  &more_string=data.string(d:&stringOffset)
-
-  if (string.len("&more_string")>=128.)
-  (
-    &string="&string"+"&more_string"
-    &stringOffset=&stringOffset+string.len("&more_string")
-
-    //Get remaining file string
-    GOSUB get_file_string &stringOffset
-    ENTRY &more_string
-    &string="&string"+"&more_string"
-  )
-  else
-  (
-    &string="&string"+"&more_string"
-    &more_string=""
+get_file_string:\r
+  ENTRY &stringOffset\r
+\r
+  local &string\r
+\r
+  &more_string=data.string(d:&stringOffset)\r
+\r
+  if (string.len("&more_string")>=128.)\r
+  (\r
+    &string="&string"+"&more_string"\r
+    &stringOffset=&stringOffset+string.len("&more_string")\r
+\r
+    //Get remaining file string\r
+    GOSUB get_file_string &stringOffset\r
+    ENTRY &more_string\r
+    &string="&string"+"&more_string"\r
+  )\r
+  else\r
+  (\r
+    &string="&string"+"&more_string"\r
+    &more_string=""\r
   )\r
   RETURN &string\r
  \r
index c2ecb6ab93833f87b5b7936271e7a92fdf564d18..db9ff4e966a372e191199a761fb01c3d3dd3489d 100644 (file)
@@ -111,27 +111,27 @@ valid_pe_header:
   )\r
   RETURN 0\r
 \r
-get_file_string:
-  ENTRY &stringOffset
-
+get_file_string:\r
+  ENTRY &stringOffset\r
+\r
   local &string\r
   \r
-  &more_string=data.string(d:&stringOffset)
-
-  if (string.len("&more_string")>=128.)
-  (
-    &string="&string"+"&more_string"
-    &stringOffset=&stringOffset+string.len("&more_string")
-
-    //Get remaining file string
-    GOSUB get_file_string &stringOffset
-    ENTRY &more_string
-    &string="&string"+"&more_string"
-  )
-  else
-  (
-    &string="&string"+"&more_string"
-    &more_string=""
+  &more_string=data.string(d:&stringOffset)\r
+\r
+  if (string.len("&more_string")>=128.)\r
+  (\r
+    &string="&string"+"&more_string"\r
+    &stringOffset=&stringOffset+string.len("&more_string")\r
+\r
+    //Get remaining file string\r
+    GOSUB get_file_string &stringOffset\r
+    ENTRY &more_string\r
+    &string="&string"+"&more_string"\r
+  )\r
+  else\r
+  (\r
+    &string="&string"+"&more_string"\r
+    &more_string=""\r
   )\r
   RETURN &string\r
  \r
index 20507fd36263610cbb670e75fdb65ad2a55e0193..ed09e2bcde07e6623fb379ccc4fdc6041cc267d0 100644 (file)
@@ -1,20 +1,20 @@
-#
-# Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
-#  
-#  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.
-#
-
-CC     = gcc
-CFLAGS = -g
-
-generate_image: generate_image.c
-               $(CC) $(CCFLAGS) $(LDFLAGS) -o generate_image generate_image.c
-
-clean:
-       rm -f generate_image generate_image.exe
+#\r
+# Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+#  \r
+#  This program and the accompanying materials\r
+#  are licensed and made available under the terms and conditions of the BSD License\r
+#  which accompanies this distribution.  The full text of the license may be found at\r
+#  http://opensource.org/licenses/bsd-license.php\r
+#\r
+#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+\r
+CC     = gcc\r
+CFLAGS = -g\r
+\r
+generate_image: generate_image.c\r
+               $(CC) $(CCFLAGS) $(LDFLAGS) -o generate_image generate_image.c\r
+\r
+clean:\r
+       rm -f generate_image generate_image.exe\r
index fe5eea853fdfbb98af3e8062452750848e7ccce7..cf50b8f2cf12c2c56cc95926159dad3d7bac9776 100755 (executable)
@@ -1,22 +1,22 @@
-#
-# Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
-#  
-#  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.
-#
-
-all: GenerateImage replace
-
-GenerateImage: generate_image.c
-               $(CC) $(CCFLAGS) $(LDFLAGS) -o GenerateImage.exe generate_image.c
-
-replace: replace.c
-               $(CC) $(CCFLAGS) $(LDFLAGS) -o replace.exe replace.c
-
-clean:
-       del GenerateImage.exe generate_image.obj replace.exe replace.obj
+#\r
+# Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+#  \r
+#  This program and the accompanying materials\r
+#  are licensed and made available under the terms and conditions of the BSD License\r
+#  which accompanies this distribution.  The full text of the license may be found at\r
+#  http://opensource.org/licenses/bsd-license.php\r
+#\r
+#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+\r
+all: GenerateImage replace\r
+\r
+GenerateImage: generate_image.c\r
+               $(CC) $(CCFLAGS) $(LDFLAGS) -o GenerateImage.exe generate_image.c\r
+\r
+replace: replace.c\r
+               $(CC) $(CCFLAGS) $(LDFLAGS) -o replace.exe replace.c\r
+\r
+clean:\r
+       del GenerateImage.exe generate_image.obj replace.exe replace.obj\r
index 130d0d1c7a13bf176274f0a2b4102f274c733822..76ddea68bd909531ec3a5ab749955f19857c6131 100755 (executable)
@@ -1,68 +1,68 @@
-@REM Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
-@REM This program and the accompanying materials
-@REM are licensed and made available under the terms and conditions of the BSD License
-@REM which accompanies this distribution.  The full text of the license may be found at
-@REM http://opensource.org/licenses/bsd-license.php
-@REM
-@REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-@REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-@REM
-
-@REM Example usage of this script. default is a DEBUG build
-@REM b
-@REM b clean
-@REM b release 
-@REM b release clean
-@REM b -v -y build.log
-
-ECHO OFF
-@REM Setup Build environment. Sets WORKSPACE and puts build in path
-CALL ..\edksetup.bat
-
-@REM Set for tools chain. Currently RVCT
-SET TARGET_TOOLS=RVCT
-SET TARGET=DEBUG
+@REM Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>\r
+@REM This program and the accompanying materials\r
+@REM are licensed and made available under the terms and conditions of the BSD License\r
+@REM which accompanies this distribution.  The full text of the license may be found at\r
+@REM http://opensource.org/licenses/bsd-license.php\r
+@REM\r
+@REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+@REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+@REM\r
+\r
+@REM Example usage of this script. default is a DEBUG build\r
+@REM b\r
+@REM b clean\r
+@REM b release \r
+@REM b release clean\r
+@REM b -v -y build.log\r
+\r
+ECHO OFF\r
+@REM Setup Build environment. Sets WORKSPACE and puts build in path\r
+CALL ..\edksetup.bat\r
+\r
+@REM Set for tools chain. Currently RVCT\r
+SET TARGET_TOOLS=RVCT\r
+SET TARGET=DEBUG\r
 \r
 @if /I "%1"=="RELEASE" (\r
   @REM If 1st argument is release set TARGET to RELEASE and shift arguments to remove it \r
   SET TARGET=RELEASE\r
   shift /1\r
 )\r
-
-SET BUILD_ROOT=%WORKSPACE%\Build\BeagleBoard\%TARGET%_%TARGET_TOOLS%
-
-@REM Build the Beagle Board firmware and creat an FD (FLASH Device) Image.
-CALL build -p BeagleBoardPkg\BeagleBoardPkg.dsc -a ARM -t %TARGET_TOOLS% -b %TARGET% %1 %2 %3 %4 %5 %6 %7 %8
-@if ERRORLEVEL 1 goto Exit
-
+\r
+SET BUILD_ROOT=%WORKSPACE%\Build\BeagleBoard\%TARGET%_%TARGET_TOOLS%\r
+\r
+@REM Build the Beagle Board firmware and creat an FD (FLASH Device) Image.\r
+CALL build -p BeagleBoardPkg\BeagleBoardPkg.dsc -a ARM -t %TARGET_TOOLS% -b %TARGET% %1 %2 %3 %4 %5 %6 %7 %8\r
+@if ERRORLEVEL 1 goto Exit\r
+\r
 @if /I "%1"=="CLEAN" goto Clean\r
-
-@REM
-@REM Ram starts at 0x80000000
-@REM OMAP 3530 TRM defines 0x80008208 as the entry point
-@REM The reset vector is caught by the mask ROM in the OMAP 3530 so that is why this entry 
-@REM point looks so strange. 
-@REM OMAP 3430 TRM section 26.4.8 has Image header information. (missing in OMAP 3530 TRM)
-@REM
-@cd Tools
-
-ECHO Building tools...
-CALL nmake 
-
-ECHO Patching image with ConfigurationHeader.dat
-CALL GenerateImage -D ..\ConfigurationHeader.dat -E 0x80008208 -I %BUILD_ROOT%\FV\BEAGLEBOARD_EFI.fd -O %BUILD_ROOT%\FV\BeagleBoard_EFI_flashboot.fd
-
-ECHO Patching ..\Debugger_scripts ...
-SET DEBUGGER_SCRIPT=..\Debugger_scripts
-@for /f %%a IN ('dir /b %DEBUGGER_SCRIPT%\*.inc %DEBUGGER_SCRIPT%\*.cmm') do (
-  @CALL replace %DEBUGGER_SCRIPT%\%%a %BUILD_ROOT%\%%a ZZZZZZ %BUILD_ROOT% WWWWWW  %WORKSPACE%
-)
-
-cd ..
-:Exit
-EXIT /B
-
-:Clean
-cd Tools
-CALL nmake clean
-cd ..
+\r
+@REM\r
+@REM Ram starts at 0x80000000\r
+@REM OMAP 3530 TRM defines 0x80008208 as the entry point\r
+@REM The reset vector is caught by the mask ROM in the OMAP 3530 so that is why this entry \r
+@REM point looks so strange. \r
+@REM OMAP 3430 TRM section 26.4.8 has Image header information. (missing in OMAP 3530 TRM)\r
+@REM\r
+@cd Tools\r
+\r
+ECHO Building tools...\r
+CALL nmake \r
+\r
+ECHO Patching image with ConfigurationHeader.dat\r
+CALL GenerateImage -D ..\ConfigurationHeader.dat -E 0x80008208 -I %BUILD_ROOT%\FV\BEAGLEBOARD_EFI.fd -O %BUILD_ROOT%\FV\BeagleBoard_EFI_flashboot.fd\r
+\r
+ECHO Patching ..\Debugger_scripts ...\r
+SET DEBUGGER_SCRIPT=..\Debugger_scripts\r
+@for /f %%a IN ('dir /b %DEBUGGER_SCRIPT%\*.inc %DEBUGGER_SCRIPT%\*.cmm') do (\r
+  @CALL replace %DEBUGGER_SCRIPT%\%%a %BUILD_ROOT%\%%a ZZZZZZ %BUILD_ROOT% WWWWWW  %WORKSPACE%\r
+)\r
+\r
+cd ..\r
+:Exit\r
+EXIT /B\r
+\r
+:Clean\r
+cd Tools\r
+CALL nmake clean\r
+cd ..\r
index e73d5e061fba1140b32fd69b2513601a5a3d15a1..24a60e46d87744fbbc4b09f9a6178b17c340762e 100755 (executable)
@@ -1,68 +1,68 @@
-@REM Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
-@REM This program and the accompanying materials
-@REM are licensed and made available under the terms and conditions of the BSD License
-@REM which accompanies this distribution.  The full text of the license may be found at
-@REM http://opensource.org/licenses/bsd-license.php
-@REM
-@REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-@REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-@REM
-
-@REM Example usage of this script. default is a DEBUG build
-@REM b
-@REM b clean
-@REM b release 
-@REM b release clean
-@REM b -v -y build.log
-
-ECHO OFF
-@REM Setup Build environment. Sets WORKSPACE and puts build in path
-CALL ..\edksetup.bat
-
-@REM Set for tools chain. Currently ARMGCC
-SET TARGET_TOOLS=ARMGCC
-SET TARGET=DEBUG
+@REM Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>\r
+@REM This program and the accompanying materials\r
+@REM are licensed and made available under the terms and conditions of the BSD License\r
+@REM which accompanies this distribution.  The full text of the license may be found at\r
+@REM http://opensource.org/licenses/bsd-license.php\r
+@REM\r
+@REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+@REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+@REM\r
+\r
+@REM Example usage of this script. default is a DEBUG build\r
+@REM b\r
+@REM b clean\r
+@REM b release \r
+@REM b release clean\r
+@REM b -v -y build.log\r
+\r
+ECHO OFF\r
+@REM Setup Build environment. Sets WORKSPACE and puts build in path\r
+CALL ..\edksetup.bat\r
+\r
+@REM Set for tools chain. Currently ARMGCC\r
+SET TARGET_TOOLS=ARMGCC\r
+SET TARGET=DEBUG\r
 \r
 @if /I "%1"=="RELEASE" (\r
   @REM If 1st argument is release set TARGET to RELEASE and shift arguments to remove it \r
   SET TARGET=RELEASE\r
   shift /1\r
 )\r
-
-SET BUILD_ROOT=%WORKSPACE%\Build\BeagleBoard\%TARGET%_%TARGET_TOOLS%
-
-@REM Build the Beagle Board firmware and creat an FD (FLASH Device) Image.
-CALL build -p BeagleBoardPkg\BeagleBoardPkg.dsc -a ARM -t %TARGET_TOOLS% -b %TARGET% %1 %2 %3 %4 %5 %6 %7 %8
-@if ERRORLEVEL 1 goto Exit
-
+\r
+SET BUILD_ROOT=%WORKSPACE%\Build\BeagleBoard\%TARGET%_%TARGET_TOOLS%\r
+\r
+@REM Build the Beagle Board firmware and creat an FD (FLASH Device) Image.\r
+CALL build -p BeagleBoardPkg\BeagleBoardPkg.dsc -a ARM -t %TARGET_TOOLS% -b %TARGET% %1 %2 %3 %4 %5 %6 %7 %8\r
+@if ERRORLEVEL 1 goto Exit\r
+\r
 @if /I "%1"=="CLEAN" goto Clean\r
-
-@REM
-@REM Ram starts at 0x80000000
-@REM OMAP 3530 TRM defines 0x80008208 as the entry point
-@REM The reset vector is caught by the mask ROM in the OMAP 3530 so that is why this entry 
-@REM point looks so strange. 
-@REM OMAP 3430 TRM section 26.4.8 has Image header information. (missing in OMAP 3530 TRM)
-@REM
-@cd Tools
-
-ECHO Building tools...
-CALL nmake 
-
-ECHO Patching image with ConfigurationHeader.dat
-CALL GenerateImage -D ..\ConfigurationHeader.dat -E 0x80008208 -I %BUILD_ROOT%\FV\BEAGLEBOARD_EFI.fd -O %BUILD_ROOT%\FV\BeagleBoard_EFI_flashboot.fd
-
-ECHO Patching ..\Debugger_scripts ...
-SET DEBUGGER_SCRIPT=..\Debugger_scripts
-@for /f %%a IN ('dir /b %DEBUGGER_SCRIPT%\*.inc %DEBUGGER_SCRIPT%\*.cmm') do (
-  @CALL replace %DEBUGGER_SCRIPT%\%%a %BUILD_ROOT%\%%a ZZZZZZ %BUILD_ROOT% WWWWWW  %WORKSPACE%
-)
-
-cd ..
-:Exit
-EXIT /B
-
-:Clean
-cd Tools
-CALL nmake clean
-cd ..
+\r
+@REM\r
+@REM Ram starts at 0x80000000\r
+@REM OMAP 3530 TRM defines 0x80008208 as the entry point\r
+@REM The reset vector is caught by the mask ROM in the OMAP 3530 so that is why this entry \r
+@REM point looks so strange. \r
+@REM OMAP 3430 TRM section 26.4.8 has Image header information. (missing in OMAP 3530 TRM)\r
+@REM\r
+@cd Tools\r
+\r
+ECHO Building tools...\r
+CALL nmake \r
+\r
+ECHO Patching image with ConfigurationHeader.dat\r
+CALL GenerateImage -D ..\ConfigurationHeader.dat -E 0x80008208 -I %BUILD_ROOT%\FV\BEAGLEBOARD_EFI.fd -O %BUILD_ROOT%\FV\BeagleBoard_EFI_flashboot.fd\r
+\r
+ECHO Patching ..\Debugger_scripts ...\r
+SET DEBUGGER_SCRIPT=..\Debugger_scripts\r
+@for /f %%a IN ('dir /b %DEBUGGER_SCRIPT%\*.inc %DEBUGGER_SCRIPT%\*.cmm') do (\r
+  @CALL replace %DEBUGGER_SCRIPT%\%%a %BUILD_ROOT%\%%a ZZZZZZ %BUILD_ROOT% WWWWWW  %WORKSPACE%\r
+)\r
+\r
+cd ..\r
+:Exit\r
+EXIT /B\r
+\r
+:Clean\r
+cd Tools\r
+CALL nmake clean\r
+cd ..\r
index 4285ea185074fb2052cb6dc417c0cf26b9796198..35035179784d9a02396609878e193705a4f0859e 100644 (file)
@@ -1,36 +1,36 @@
-#/** @file
-# Omap35xx SoC package.
-#
-# Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR>
-#
-#    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]
-  DEC_SPECIFICATION              = 0x00010005
-  PACKAGE_NAME                   = Omap35xxPkg
-  PACKAGE_GUID                   = D196A631-B7B7-4953-A3EE-0F773CBABF20
-  PACKAGE_VERSION                = 0.1
-
-################################################################################
-#
-# Include Section - list of Include Paths that are provided by this package.
-#                   Comments are used for Keywords and Module Types.
-#
-# Supported Module Types:
-#  BASE SEC PEI_CORE PEIM DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SMM_DRIVER DXE_SAL_DRIVER UEFI_DRIVER UEFI_APPLICATION
-#
-################################################################################
-[Includes.common]
-  Include                        # Root include for the package
-
+#/** @file\r
+# Omap35xx SoC package.\r
+#\r
+# Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR>\r
+#\r
+#    This program and the accompanying materials are licensed and made available under\r
+#    the terms and conditions of the BSD License which accompanies this distribution.\r
+#    The full text of the license may be found at\r
+#    http://opensource.org/licenses/bsd-license.php\r
+#\r
+#    THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+#    WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+#**/\r
+\r
+[Defines]\r
+  DEC_SPECIFICATION              = 0x00010005\r
+  PACKAGE_NAME                   = Omap35xxPkg\r
+  PACKAGE_GUID                   = D196A631-B7B7-4953-A3EE-0F773CBABF20\r
+  PACKAGE_VERSION                = 0.1\r
+\r
+################################################################################\r
+#\r
+# Include Section - list of Include Paths that are provided by this package.\r
+#                   Comments are used for Keywords and Module Types.\r
+#\r
+# Supported Module Types:\r
+#  BASE SEC PEI_CORE PEIM DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SMM_DRIVER DXE_SAL_DRIVER UEFI_DRIVER UEFI_APPLICATION\r
+#\r
+################################################################################\r
+[Includes.common]\r
+  Include                        # Root include for the package\r
+\r
 [LibraryClasses]\r
   ##  @libraryclass  Abstract location of basic OMAP components\r
   ##\r
   ##  @libraryclass  Abstract OMAP and ARM DMA, modeled after PCI IO protocol\r
   ##\r
   OmapDmaLib|Include/Library/OmapDmaLib.h\r
-
-
-[Guids.common]
-  gOmap35xxTokenSpaceGuid    =  { 0x24b09abe, 0x4e47, 0x481c, { 0xa9, 0xad, 0xce, 0xf1, 0x2c, 0x39, 0x23, 0x27} } 
-
-[PcdsFeatureFlag.common]
-
-[PcdsFixedAtBuild.common]
-  gOmap35xxTokenSpaceGuid.PcdOmap35xxConsoleUart|3|UINT32|0x00000202
-  gOmap35xxTokenSpaceGuid.PcdOmap35xxGpmcOffset|0x00000000|UINT32|0x00000203
-  gOmap35xxTokenSpaceGuid.PcdOmap35xxMMCHS1Base|0x00000000|UINT32|0x00000204
-  gOmap35xxTokenSpaceGuid.PcdOmap35xxArchTimer|3|UINT32|0x00000205
-  gOmap35xxTokenSpaceGuid.PcdOmap35xxFreeTimer|4|UINT32|0x00000206
-  gOmap35xxTokenSpaceGuid.PcdOmap35xxDebugAgentTimer|5|UINT32|0x00000207
-  gOmap35xxTokenSpaceGuid.PcdDebugAgentTimerFreqNanoSeconds|77|UINT32|0x00000208
-  gOmap35xxTokenSpaceGuid.PcdMmchsTimerFreq100NanoSeconds|1000000|UINT32|0x00000209
-  
+\r
+\r
+[Guids.common]\r
+  gOmap35xxTokenSpaceGuid    =  { 0x24b09abe, 0x4e47, 0x481c, { 0xa9, 0xad, 0xce, 0xf1, 0x2c, 0x39, 0x23, 0x27} } \r
+\r
+[PcdsFeatureFlag.common]\r
+\r
+[PcdsFixedAtBuild.common]\r
+  gOmap35xxTokenSpaceGuid.PcdOmap35xxConsoleUart|3|UINT32|0x00000202\r
+  gOmap35xxTokenSpaceGuid.PcdOmap35xxGpmcOffset|0x00000000|UINT32|0x00000203\r
+  gOmap35xxTokenSpaceGuid.PcdOmap35xxMMCHS1Base|0x00000000|UINT32|0x00000204\r
+  gOmap35xxTokenSpaceGuid.PcdOmap35xxArchTimer|3|UINT32|0x00000205\r
+  gOmap35xxTokenSpaceGuid.PcdOmap35xxFreeTimer|4|UINT32|0x00000206\r
+  gOmap35xxTokenSpaceGuid.PcdOmap35xxDebugAgentTimer|5|UINT32|0x00000207\r
+  gOmap35xxTokenSpaceGuid.PcdDebugAgentTimerFreqNanoSeconds|77|UINT32|0x00000208\r
+  gOmap35xxTokenSpaceGuid.PcdMmchsTimerFreq100NanoSeconds|1000000|UINT32|0x00000209\r
+  \r