]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/AArch64/SpeculationBarrier.asm
0c4b915b7798387b67f1060846ba4770ca840ff2
[mirror_edk2.git] / MdePkg / Library / BaseLib / AArch64 / SpeculationBarrier.asm
1 ;------------------------------------------------------------------------------
2 ;
3 ; SpeculationBarrier() for AArch64
4 ;
5 ; Copyright (c) 2019, Linaro Ltd. All rights reserved.
6 ;
7 ; This program and the accompanying materials
8 ; are licensed and made available under the terms and conditions of the BSD License
9 ; which accompanies this distribution. The full text of the license may be found at
10 ; http://opensource.org/licenses/bsd-license.php.
11 ;
12 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 ;
15 ;------------------------------------------------------------------------------
16
17 EXPORT SpeculationBarrier
18 AREA BaseLib_LowLevel, CODE, READONLY
19
20 ;/**
21 ; Uses as a barrier to stop speculative execution.
22 ;
23 ; Ensures that no later instruction will execute speculatively, until all prior
24 ; instructions have completed.
25 ;
26 ;**/
27 ;VOID
28 ;EFIAPI
29 ;SpeculationBarrier (
30 ; VOID
31 ; );
32 ;
33 SpeculationBarrier
34 dsb sy
35 isb
36 ret
37
38 END