]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/Ia32/Lfence.nasm
MdePkg/BaseLib: Add new AsmLfence API
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / Lfence.nasm
CommitLineData
2ecd8299
HW
1;------------------------------------------------------------------------------ ;\r
2; Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>\r
3; This program and the accompanying materials\r
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
6; http://opensource.org/licenses/bsd-license.php.\r
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; Lfence.nasm\r
14;\r
15; Abstract:\r
16;\r
17; Performs a serializing operation on all load-from-memory instructions that\r
18; were issued prior to the call of this function.\r
19;\r
20; Notes:\r
21;\r
22;------------------------------------------------------------------------------\r
23\r
24 SECTION .text\r
25\r
26;------------------------------------------------------------------------------\r
27; VOID\r
28; EFIAPI\r
29; AsmLfence (\r
30; VOID\r
31; );\r
32;------------------------------------------------------------------------------\r
33global ASM_PFX(AsmLfence)\r
34ASM_PFX(AsmLfence):\r
35 lfence\r
36 ret\r