]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmRealViewEbPkg/Sec/ModuleEntryPoint.S
ArmRealViewEbPkg: Delete the deprecated package 'ArmRealViewEbPkg'
[mirror_edk2.git] / ArmRealViewEbPkg / Sec / ModuleEntryPoint.S
diff --git a/ArmRealViewEbPkg/Sec/ModuleEntryPoint.S b/ArmRealViewEbPkg/Sec/ModuleEntryPoint.S
deleted file mode 100755 (executable)
index 2b5ee8f..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-#------------------------------------------------------------------------------ \r
-#\r
-# ARM EB Entry point. Reset vector in FV header will brach to\r
-# _ModuleEntryPoint. \r
-#\r
-# We use crazy macros, like LoadConstantToReg, since Xcode assembler \r
-# does not support = assembly syntax for ldr.\r
-#\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
-\r
-#include <AsmMacroIoLib.h>\r
-#include <Base.h>\r
-#include <Library/PcdLib.h>\r
-#include <ArmEb/ArmEb.h>\r
-\r
-.text\r
-.align 3\r
-\r
-.globl ASM_PFX(CEntryPoint)\r
-.globl ASM_PFX(_ModuleEntryPoint)\r
-\r
-ASM_PFX(_ModuleEntryPoint):\r
\r
-  // Turn off remapping NOR to 0. We can now use DRAM in low memory\r
-  // CAN'T DO THIS HERE -- BRANCH FROM RESET VECTOR IS RELATIVE AND REMAINS IN REMAPPED NOR\r
-  //MmioOr32 (EB_SP810_CTRL_BASE ,BIT8) \r
-\r
-  // Enable NEON register in case folks want to use them for optimizations (CopyMem)\r
-  mrc     p15, 0, r0, c1, c0, 2\r
-  orr     r0, r0, #0x00f00000   // Enable VPF access (V* instructions)\r
-  mcr     p15, 0, r0, c1, c0, 2\r
-  mov     r0, #0x40000000       // Set EN bit in FPEXC\r
-  mcr     p10,#0x7,r0,c8,c0,#0  // msr     FPEXC,r0 in ARM assembly\r
-   \r
-  // Set CPU vectors to 0 (which is currently flash)\r
-  LoadConstantToReg (FixedPcdGet32(PcdCpuVectorBaseAddress) ,r0) // Get vector base\r
-  mcr     p15, 0, r0, c12, c0, 0\r
-  isb                               // Sync changes to control registers\r
-\r
-  //\r
-  // Set stack based on PCD values. Need to do it this way to make C code work \r
-  // when it runs from FLASH. \r
-  //  \r
-  LoadConstantToReg (FixedPcdGet32(PcdPrePiStackBase) ,r2)    // stack base arg2  \r
-  LoadConstantToReg (FixedPcdGet32(PcdPrePiStackSize) ,r3)    // stack size arg3  \r
-  add     r4, r2, r3\r
-  mov     r13, r4\r
-\r
-  // Call C entry point\r
-  LoadConstantToReg (FixedPcdGet32(PcdMemorySize) ,r1)    // memory size arg1      \r
-  LoadConstantToReg (FixedPcdGet32(PcdMemoryBase) ,r0)    // memory size arg0       \r
-  blx      ASM_PFX(CEntryPoint) \r
-\r
-ShouldNeverGetHere:\r
-  // _CEntryPoint should never return \r
-  b       ShouldNeverGetHere\r
-\r
\r