]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/AArch64/MemoryFence.asm
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseLib / AArch64 / MemoryFence.asm
CommitLineData
da351bdb
PB
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
da351bdb
PB
8;\r
9;------------------------------------------------------------------------------\r
10\r
11 EXPORT MemoryFence\r
12 AREA BaseLib_LowLevel, CODE, READONLY\r
13\r
14;/**\r
15; Used to serialize load and store operations.\r
16;\r
17; All loads and stores that proceed calls to this function are guaranteed to be\r
18; globally visible when this function returns.\r
19;\r
20;**/\r
21;VOID\r
22;EFIAPI\r
23;MemoryFence (\r
24; VOID\r
25; );\r
26;\r
27MemoryFence\r
28 // System wide Data Memory Barrier.\r
29 dmb sy\r
30 ret\r
31\r
32 END\r