1 //------------------------------------------------------------------------------
3 // Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
4 // Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
5 // Portions copyright (c) 2011, ARM Limited. All rights reserved.<BR>
6 // SPDX-License-Identifier: BSD-2-Clause-Patent
8 //------------------------------------------------------------------------------
13 GCC_ASM_EXPORT(InternalSwitchStackAsm)
14 GCC_ASM_EXPORT(CpuPause)
18 // This allows the caller to switch the stack and goes to the new entry point
20 // @param EntryPoint The pointer to the location to enter
21 // @param Context Parameter to pass in
22 // @param Context2 Parameter2 to pass in
23 // @param NewStack New Location of the stack
25 // @return Nothing. Goes to the Entry Point passing in the new parameters
29 InternalSwitchStackAsm (
30 SWITCH_STACK_ENTRY_POINT EntryPoint,
36 ASM_PFX(InternalSwitchStackAsm):
45 // Requests CPU to pause for a short period of time.
47 // Requests CPU to pause for a short period of time. Typically used in MP
48 // systems to prevent memory starvation while waiting for a spin lock.