]>
Commit | Line | Data |
---|---|---|
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 | .text\r | |
18 | .p2align 2\r | |
19 | \r | |
20 | GCC_ASM_EXPORT(MemoryFence)\r | |
21 | \r | |
22 | \r | |
23 | #/**\r | |
24 | # Used to serialize load and store operations.\r | |
25 | #\r | |
26 | # All loads and stores that proceed calls to this function are guaranteed to be\r | |
27 | # globally visible when this function returns.\r | |
28 | #\r | |
29 | #**/\r | |
30 | #VOID\r | |
31 | #EFIAPI\r | |
32 | #MemoryFence (\r | |
33 | # VOID\r | |
34 | # );\r | |
35 | #\r | |
36 | ASM_PFX(MemoryFence):\r | |
37 | // System wide Data Memory Barrier.\r | |
38 | dmb sy\r | |
39 | ret\r |