]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/AArch64/SpeculationBarrier.asm
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseLib / AArch64 / 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 AREA BaseLib_LowLevel, CODE, READONLY\r
13\r
14;/**\r
15; Uses as a barrier to stop speculative execution.\r
16;\r
17; Ensures that no later instruction will execute speculatively, until all prior\r
18; instructions have completed.\r
19;\r
20;**/\r
21;VOID\r
22;EFIAPI\r
23;SpeculationBarrier (\r
24; VOID\r
25; );\r
26;\r
27SpeculationBarrier\r
28 dsb sy\r
29 isb\r
30 ret\r
31\r
32 END\r