]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/PrePeiCore/Arm/PrePeiCoreEntryPoint.asm
ArmPlatformPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / ArmPlatformPkg / PrePeiCore / Arm / PrePeiCoreEntryPoint.asm
index abea675828dff7e75a91a8a3d84461949570a0e7..2734b0951a094fa41a9c2460ebe5afcb0cb5fcdb 100644 (file)
@@ -1,13 +1,7 @@
 //\r
 //  Copyright (c) 2011-2013, ARM Limited. All rights reserved.\r
 //\r
-//  This program and the accompanying materials\r
-//  are licensed and made available under the terms and conditions of the BSD License\r
-//  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
+//  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 //\r
 //\r
 \r
@@ -79,6 +73,14 @@ _PrepareArguments
 \r
 _SetupPrimaryCoreStack\r
   mov   sp, r1\r
+  mov32 r8, FixedPcdGet64 (PcdCPUCoresStackBase)\r
+  mov32 r9, FixedPcdGet32 (PcdInitValueInTempStack)\r
+  mov   r10, r9\r
+  mov   r11, r9\r
+  mov   r12, r9\r
+0:stm   r8!, {r9-r12}\r
+  cmp   r8, r1\r
+  blt   0b\r
   b     _PrepareArguments\r
 \r
 _NeverReturn\r