]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/Arm/SpeculationBarrier.S
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseLib / Arm / SpeculationBarrier.S
CommitLineData
c0959b44
AB
1##------------------------------------------------------------------------------\r
2#\r
3# SpeculationBarrier() for AArch64\r
4#\r
5# Copyright (c) 2019, Linaro 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
20GCC_ASM_EXPORT(SpeculationBarrier)\r
21\r
22\r
23#/**\r
24# Uses as a barrier to stop speculative execution.\r
25#\r
26# Ensures that no later instruction will execute speculatively, until all prior\r
27# instructions have completed.\r
28#\r
29#**/\r
30#VOID\r
31#EFIAPI\r
32#SpeculationBarrier (\r
33# VOID\r
34# );\r
35#\r
36ASM_PFX(SpeculationBarrier):\r
37 dsb\r
38 isb\r
39 bx lr\r