]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Arm/MemoryFence.S
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseLib / Arm / MemoryFence.S
1 ##------------------------------------------------------------------------------
2 #
3 # MemoryFence() for AArch64
4 #
5 # Copyright (c) 2013, ARM Ltd. All rights reserved.
6 #
7 # SPDX-License-Identifier: BSD-2-Clause-Patent
8 #
9 ##------------------------------------------------------------------------------
10
11 .text
12 .p2align 2
13
14 GCC_ASM_EXPORT(MemoryFence)
15
16
17 #/**
18 # Used to serialize load and store operations.
19 #
20 # All loads and stores that proceed calls to this function are guaranteed to be
21 # globally visible when this function returns.
22 #
23 #**/
24 #VOID
25 #EFIAPI
26 #MemoryFence (
27 # VOID
28 # );
29 #
30 ASM_PFX(MemoryFence):
31 // System wide Data Memory Barrier.
32 dmb
33 bx lr