SwitchStack.asm revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync;------------------------------------------------------------------------------
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync; Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync; This program and the accompanying materials
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync; are licensed and made available under the terms and conditions of the BSD License
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync; which accompanies this distribution. The full text of the license may be found at
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync;------------------------------------------------------------------------------
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync EXPORT InternalSwitchStackAsm
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync AREA Switch_Stack, CODE, READONLY
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync; This allows the caller to switch the stack and goes to the new entry point
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync; @param EntryPoint The pointer to the location to enter
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync; @param Context Parameter to pass in
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync; @param Context2 Parameter2 to pass in
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync; @param NewStack New Location of the stack
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync; @return Nothing. Goes to the Entry Point passing in the new parameters
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync;InternalSwitchStackAsm (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync; SWITCH_STACK_ENTRY_POINT EntryPoint,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync; VOID *Context,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync; VOID *Context2,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync; VOID *NewStack
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncInternalSwitchStackAsm