diff options
author | vprabhal <vprabhal@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-10-05 18:47:03 +0000 |
---|---|---|
committer | vprabhal <vprabhal@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-10-05 18:47:03 +0000 |
commit | e0337bfab8f1d3affab9e0313121d6015f0d996c (patch) | |
tree | 1315ad8a139c688f27af579b5d2342d9fae7f056 /MdePkg/Library/CpuLib/Ia32/CpuFlushTlb.c | |
parent | 052ad7e1912d93798fa80f74c6a6ab364b4d13d8 (diff) | |
download | edk2-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/CpuFlushTlb.c')
-rw-r--r-- | MdePkg/Library/CpuLib/Ia32/CpuFlushTlb.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/MdePkg/Library/CpuLib/Ia32/CpuFlushTlb.c b/MdePkg/Library/CpuLib/Ia32/CpuFlushTlb.c new file mode 100644 index 0000000000..e785095d7a --- /dev/null +++ b/MdePkg/Library/CpuLib/Ia32/CpuFlushTlb.c @@ -0,0 +1,31 @@ +/** @file
+ CpuFlushTlb 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
+CpuFlushTlb (
+ VOID
+ )
+{
+ _asm {
+ mov eax, cr3
+ mov cr3, eax
+ }
+}
+
|