]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/Arm/SpeculationBarrier.asm
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseLib / Arm / SpeculationBarrier.asm
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
9344f092 7; SPDX-License-Identifier: BSD-2-Clause-Patent\r
c0959b44
AB
8;\r
9;------------------------------------------------------------------------------\r
10\r
11 EXPORT SpeculationBarrier\r
12\r
13 AREA MemoryBarriers, CODE, READONLY\r
14\r
15;/**\r
16; Uses as a barrier to stop speculative execution.\r
17;\r
18; Ensures that no later instruction will execute speculatively, until all prior\r
19; instructions have completed.\r
20;\r
21;**/\r
22;VOID\r
23;EFIAPI\r
24;SpeculationBarrier (\r
25; VOID\r
26; );\r
27;\r
28SpeculationBarrier\r
29 dsb\r
30 isb\r
31 bx lr\r
32\r
33 END\r