summaryrefslogtreecommitdiff
path: root/MdePkg/Library/CpuLib/Ia32/CpuSleep.c
diff options
context:
space:
mode:
authorvprabhal <vprabhal@6f19259b-4bc3-4df7-8a09-765794883524>2007-10-05 18:47:03 +0000
committervprabhal <vprabhal@6f19259b-4bc3-4df7-8a09-765794883524>2007-10-05 18:47:03 +0000
commite0337bfab8f1d3affab9e0313121d6015f0d996c (patch)
tree1315ad8a139c688f27af579b5d2342d9fae7f056 /MdePkg/Library/CpuLib/Ia32/CpuSleep.c
parent052ad7e1912d93798fa80f74c6a6ab364b4d13d8 (diff)
downloadedk2-platforms-e0337bfab8f1d3affab9e0313121d6015f0d996c.tar.xz
created a CpuLib for CpuSleep and CpuFlushTlb from BaseLib to remove circular dependency on PalCallLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4020 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/CpuLib/Ia32/CpuSleep.c')
-rw-r--r--MdePkg/Library/CpuLib/Ia32/CpuSleep.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/MdePkg/Library/CpuLib/Ia32/CpuSleep.c b/MdePkg/Library/CpuLib/Ia32/CpuSleep.c
new file mode 100644
index 0000000000..690f9b3598
--- /dev/null
+++ b/MdePkg/Library/CpuLib/Ia32/CpuSleep.c
@@ -0,0 +1,30 @@
+/** @file
+ CpuSleep function.
+
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>
+ All rights reserved. This program and the accompanying materials
+ are licensed and made available under the terms and conditions of the BSD License
+ which accompanies this distribution. The full text of the license may be found at
+ http://opensource.org/licenses/bsd-license.php
+
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+//
+// Include common header file for this module.
+//
+
+
+VOID
+EFIAPI
+CpuSleep (
+ VOID
+ )
+{
+ _asm {
+ hlt
+ }
+}
+