]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/Arm/MemoryFence.asm
Add Memory fence for ARM Architecture (32 and 64 bit)
[mirror_edk2.git] / MdePkg / Library / BaseLib / Arm / MemoryFence.asm
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
7; This program and the accompanying materials\r
8; are licensed and made available under the terms and conditions of the BSD License\r
9; which accompanies this distribution. The full text of the license may be found at\r
10; http://opensource.org/licenses/bsd-license.php.\r
11;\r
12; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
13; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
14;\r
15;------------------------------------------------------------------------------\r
16\r
17 EXPORT MemoryFence\r
18\r
19 AREA MemoryBarriers, CODE, READONLY\r
20\r
21;/**\r
22; Used to serialize load and store operations.\r
23;\r
24; All loads and stores that proceed calls to this function are guaranteed to be\r
25; globally visible when this function returns.\r
26;\r
27;**/\r
28;VOID\r
29;EFIAPI\r
30;MemoryFence (\r
31; VOID\r
32; );\r
33;\r
34MemoryFence FUNCTION\r
35 dmb\r
36 bx lr\r
37 ENDFUNC\r
38\r
39 END\r