2 GCC inline implementation of BaseLib processor specific functions.
4 Copyright (c) 2006 - 2007, Intel Corporation<BR>
5 Portions copyright (c) 2008-2009 Apple Inc. All rights reserved.<BR>
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #include "BaseLibInternals.h"
19 Requests CPU to pause for a short period of time.
21 Requests CPU to pause for a short period of time. Typically used in MP
22 systems to prevent memory starvation while waiting for a spin lock.
31 __asm__
__volatile__ (
42 InternalSwitchStackAsm (
43 SWITCH_STACK_ENTRY_POINT EntryPoint
,
49 __asm__
__volatile__ (
55 : /* no output operand */