]>
Commit | Line | Data |
---|---|---|
e0337bfa | 1 | /** @file\r |
2 | CpuFlushTlb function.\r | |
3 | \r | |
de2d3419 HT |
4 | Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r |
5 | This program and the accompanying materials\r | |
e0337bfa | 6 | are licensed and made available under the terms and conditions of the BSD License\r |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
1efcc4ae | 15 | \r |
e0337bfa | 16 | \r |
42eedea9 | 17 | /**\r |
3e5c3238 | 18 | Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.\r |
19 | \r | |
20 | Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.\r | |
e0337bfa | 21 | \r |
42eedea9 | 22 | **/\r |
e0337bfa | 23 | VOID\r |
24 | EFIAPI\r | |
25 | CpuFlushTlb (\r | |
26 | VOID\r | |
27 | )\r | |
28 | {\r | |
29 | _asm {\r | |
30 | mov eax, cr3\r | |
31 | mov cr3, eax\r | |
32 | }\r | |
33 | }\r | |
34 | \r |