]> git.proxmox.com Git - mirror_edk2.git/blame - BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardHelper.asm
ArmPkg/ArmGicLib: Replaced 'ArmGicAcknowledgeSgiFrom' by 'ArmGicAcknowledgeInterrupt'
[mirror_edk2.git] / BeagleBoardPkg / Library / BeagleBoardLib / BeagleBoardHelper.asm
CommitLineData
7f21c4a2 1//\r
2// Copyright (c) 2011, ARM Limited. All rights reserved.\r
3// \r
4// This program and the accompanying materials \r
5// are licensed and made available under the terms and conditions of the BSD License \r
6// which accompanies this distribution. The full text of the license may be found at \r
7// http://opensource.org/licenses/bsd-license.php \r
8//\r
9// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11//\r
12//\r
13\r
14#include <AsmMacroIoLib.h>\r
15#include <Base.h>\r
16#include <Library/PcdLib.h>\r
da22bd61 17#include <BeagleBoard.h>\r
7f21c4a2 18#include <AutoGen.h>\r
19\r
20 INCLUDE AsmMacroIoLib.inc\r
21 \r
22 EXPORT ArmPlatformIsBootMemoryInitialized\r
23 EXPORT ArmPlatformInitializeBootMemory\r
24 \r
25 PRESERVE8\r
26 AREA BeagleBoardHelper, CODE, READONLY\r
27\r
28/**\r
29 Called at the early stage of the Boot phase to know if the memory has already been initialized\r
30\r
31 Running the code from the reset vector does not mean we start from cold boot. In some case, we\r
32 can go through this code with the memory already initialized.\r
33 Because this function is called at the early stage, the implementation must not use the stack.\r
34 Its implementation must probably done in assembly to ensure this requirement.\r
35\r
36 @return Return a non zero value if initialized\r
37\r
38**/\r
39ArmPlatformIsBootMemoryInitialized\r
40 // The system memory is initialized by the BeagleBoard firmware\r
41 mov r0, #1\r
42 bx lr\r
43 \r
44/**\r
45 Initialize the memory where the initial stacks will reside\r
46\r
47 This memory can contain the initial stacks (Secure and Secure Monitor stacks).\r
48 In some platform, this region is already initialized and the implementation of this function can\r
49 do nothing. This memory can also represent the Secure RAM.\r
50 This function is called before the satck has been set up. Its implementation must ensure the stack\r
51 pointer is not used (probably required to use assembly language)\r
52\r
53**/\r
54ArmPlatformInitializeBootMemory\r
55 // We must need to go into this function\r
56 bx lr\r
57 \r
58 END\r