]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseCpuLib/Ia32/CpuSleepGcc.c
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseCpuLib / Ia32 / CpuSleepGcc.c
CommitLineData
cf683fed 1/** @file\r
2 CpuSleep function for Ia32/X64 GCC.\r
3\r
c9b34b8c
HT
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
5 Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
9344f092 6 SPDX-License-Identifier: BSD-2-Clause-Patent\r
cf683fed 7\r
8**/\r
9\r
10\r
11/**\r
12 Places the CPU in a sleep state until an interrupt is received.\r
13\r
14 Places the CPU in a sleep state until an interrupt is received. If interrupts\r
15 are disabled prior to calling this function, then the CPU will be placed in a\r
16 sleep state indefinitely.\r
17\r
18**/\r
19VOID\r
20EFIAPI\r
21CpuSleep (\r
22 VOID\r
23 )\r
24{\r
25 __asm__ __volatile__ ("hlt"::: "memory");\r
26}\r
27\r