1 ;------------------------------------------------------------------------------
3 ; Copyright (c) 2006 - 2009, Intel Corporation<BR>
4 ; Portions copyright (c) 2008-2009 Apple Inc. All rights reserved.<BR>
5 ; All rights reserved. This program and the accompanying materials
6 ; are licensed and made available under the terms and conditions of the BSD License
7 ; which accompanies this distribution. The full text of the license may be found at
8 ; http://opensource.org/licenses/bsd-license.php
10 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 ;------------------------------------------------------------------------------
15 EXPORT InternalSwitchStackAsm
17 AREA Switch_Stack, CODE, READONLY
20 ; This allows the caller to switch the stack and goes to the new entry point
22 ; @param EntryPoint Pointer to the location to enter
23 ; @param Context Parameter to pass in
24 ; @param Context2 Parameter2 to pass in
25 ; @param NewStack New Location of the stack
27 ; @return Nothing. Goes to the Entry Point passing in the new parameters
32 ;InternalSwitchStackAsm (
33 ; SWITCH_STACK_ENTRY_POINT EntryPoint,
39 InternalSwitchStackAsm