]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/X64/Lfence.nasm
9ee9b563e20a5b6923a9d47138f676517a9d8c2e
[mirror_edk2.git] / MdePkg / Library / BaseLib / X64 / Lfence.nasm
1 ;------------------------------------------------------------------------------ ;
2 ; Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
3 ; This program and the accompanying materials
4 ; are licensed and made available under the terms and conditions of the BSD License
5 ; which accompanies this distribution. The full text of the license may be found at
6 ; http://opensource.org/licenses/bsd-license.php.
7 ;
8 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
9 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
10 ;
11 ; Module Name:
12 ;
13 ; Lfence.nasm
14 ;
15 ; Abstract:
16 ;
17 ; Performs a serializing operation on all load-from-memory instructions that
18 ; were issued prior to the call of this function.
19 ;
20 ; Notes:
21 ;
22 ;------------------------------------------------------------------------------
23
24 DEFAULT REL
25 SECTION .text
26
27 ;------------------------------------------------------------------------------
28 ; VOID
29 ; EFIAPI
30 ; AsmLfence (
31 ; VOID
32 ; );
33 ;------------------------------------------------------------------------------
34 global ASM_PFX(AsmLfence)
35 ASM_PFX(AsmLfence):
36 lfence
37 ret