]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BeagleBoardPkg/Sec/Arm/ModuleEntryPoint.asm
ARM Packages: Removed trailing spaces
[mirror_edk2.git] / BeagleBoardPkg / Sec / Arm / ModuleEntryPoint.asm
index d31a29b7c9b8f0f1449b9dbd40a3a38aaf1703b7..63174d4b84370287d304bd37415e54b59478cc8b 100644 (file)
@@ -1,4 +1,4 @@
-//------------------------------------------------------------------------------ \r
+//------------------------------------------------------------------------------\r
 //\r
 // Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
 //\r
 #include <Library/PcdLib.h>\r
 #include <AutoGen.h>\r
   INCLUDE AsmMacroIoLib.inc\r
-  \r
+\r
   IMPORT  CEntryPoint\r
   EXPORT  _ModuleEntryPoint\r
-        \r
+\r
   PRESERVE8\r
   AREA    ModuleEntryPoint, CODE, READONLY\r
-  \r
+\r
 \r
 _ModuleEntryPoint\r
\r
+\r
   //Disable L2 cache\r
   mrc     p15, 0, r0, c1, c0, 1   // read Auxiliary Control Register\r
   bic     r0, r0, #0x00000002     // disable L2 cache\r
   mcr     p15, 0, r0, c1, c0, 1   // store Auxiliary Control Register\r
-  \r
+\r
   //Enable Strict alignment checking & Instruction cache\r
   mrc     p15, 0, r0, c1, c0, 0\r
   bic     r0, r0, #0x00002300     /* clear bits 13, 9:8 (--V- --RS) */\r
@@ -38,14 +38,14 @@ _ModuleEntryPoint
   orr     r0, r0, #0x00000002     /* set bit 1 (A) Align */\r
   orr     r0, r0, #0x00001000     /* set bit 12 (I) enable I-Cache */\r
   mcr     p15, 0, r0, c1, c0, 0\r
\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
   msr     FPEXC,r0\r
-   \r
+\r
   // Set CPU vectors to start of DRAM\r
   LoadConstantToReg (FixedPcdGet32(PcdCpuVectorBaseAddress) ,r0) // Get vector base\r
   mcr     p15, 0, r0, c12, c0, 0\r
@@ -59,16 +59,16 @@ FillVectors
   adds    r2, r2, #4\r
   cmp     r2, #32\r
   bne     FillVectors\r
-   \r
+\r
   /* before we call C code, lets setup the stack pointer in internal RAM */\r
 stack_pointer_setup\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
+  // 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
 \r
   //Enter SVC mode and set up SVC stack pointer\r
@@ -77,13 +77,13 @@ stack_pointer_setup
   mov     r13,r4\r
 \r
   // Call C entry point\r
-  LoadConstantToReg (FixedPcdGet32(PcdMemorySize) ,r1)    // memory size arg1         \r
+  LoadConstantToReg (FixedPcdGet32(PcdMemorySize) ,r1)    // memory size arg1\r
   LoadConstantToReg (FixedPcdGet32(PcdMemoryBase) ,r0)    // memory start arg0\r
-  blx     CEntryPoint                                     // Assume C code is thumb    \r
+  blx     CEntryPoint                                     // Assume C code is thumb\r
 \r
 ShouldNeverGetHere\r
   /* _CEntryPoint should never return */\r
   b       ShouldNeverGetHere\r
-  \r
+\r
   END\r
 \r