]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseCpuLib/Ia32/CpuFlushTlb.asm
ArmPkg/ArmDisassemblerLib: fix check for MSR instruction
[mirror_edk2.git] / MdePkg / Library / BaseCpuLib / Ia32 / CpuFlushTlb.asm
CommitLineData
e0337bfa 1;------------------------------------------------------------------------------ ;\r
de2d3419
HT
2; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
3; This program and the accompanying materials\r
e0337bfa 4; are licensed and made available under the terms and conditions of the BSD License\r
5; which accompanies this distribution. The full text of the license may be found at\r
35a17154 6; http://opensource.org/licenses/bsd-license.php.\r
e0337bfa 7;\r
8; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
9; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
10;\r
11; Module Name:\r
12;\r
13; CpuFlushTlb.Asm\r
14;\r
15; Abstract:\r
16;\r
17; CpuFlushTlb function\r
18;\r
19; Notes:\r
20;\r
21;------------------------------------------------------------------------------\r
22\r
23 .386p\r
24 .model flat,C\r
25 .code\r
26\r
27;------------------------------------------------------------------------------\r
28; VOID\r
29; EFIAPI\r
30; CpuFlushTlb (\r
31; VOID\r
32; );\r
33;------------------------------------------------------------------------------\r
34CpuFlushTlb PROC\r
35 mov eax, cr3\r
36 mov cr3, eax ; moving to CR3 flushes TLB\r
37 ret\r
38CpuFlushTlb ENDP\r
39\r
40 END\r