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