2 // Copyright (c) 2006, Intel Corporation
3 // All rights reserved. This program and the accompanying materials
4 // are licensed and made available under the terms and conditions of the BSD License
5 // which accompanies this distribution. The full text of the license may be found at
6 // http://opensource.org/licenses/bsd-license.php
8 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
9 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
29 .global GetEsalEntryPoint
32 //-----------------------------------------------------------------------------
36 // Return Esal global and PSR register.
42 // r8 = EFI_SAL_SUCCESS
43 // r9 = Physical Plabel
44 // r10 = Virtual Plabel
47 // As per static calling conventions.
50 //---------------------------------------------------------------------------
51 PROCEDURE_ENTRY (GetEsalEntryPoint)
53 NESTED_SETUP (0,8,0,0)
57 add r8 = (EsalEntryPoint - EsalCalcStart), r8;;
65 PROCEDURE_EXIT (GetEsalEntryPoint)
71 //-----------------------------------------------------------------------------
73 // SetEsalPhysicalEntryPoint
75 // Set the dispatcher entry point
78 // in0 = Physical address of Esal Dispatcher
82 // r8 = EFI_SAL_SUCCESS
84 // As per static calling conventions.
87 //---------------------------------------------------------------------------
88 PROCEDURE_ENTRY (SetEsalPhysicalEntryPoint)
90 NESTED_SETUP (2,8,0,0)
94 add r8 = (EsalEntryPoint - EsalCalcStart1), r8;;
102 PROCEDURE_EXIT (SetEsalPhysicalEntryPoint)
105 //-----------------------------------------------------------------------------
107 // SetEsalVirtualEntryPoint
109 // Register physical address of Esal globals.
112 // in0 = Virtual address of Esal Dispatcher
116 // r8 = EFI_SAL_ERROR
118 // As per static calling conventions.
121 //---------------------------------------------------------------------------
122 PROCEDURE_ENTRY (SetEsalVirtualEntryPoint)
124 NESTED_SETUP (2,8,0,0)
128 add r8 = (EsalEntryPoint - EsalCalcStart2), r8;;
137 PROCEDURE_EXIT (SetEsalVirtualEntryPoint)
144 data8 0 // Physical Entry
146 data8 0 // Virtual Entry