]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Arm/SpeculationBarrier.asm
425cd3de9e220544e2fafbd2dccc624c0034b895
[mirror_edk2.git] / MdePkg / Library / BaseLib / Arm / 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
19 AREA MemoryBarriers, CODE, READONLY
20
21 ;/**
22 ; Uses as a barrier to stop speculative execution.
23 ;
24 ; Ensures that no later instruction will execute speculatively, until all prior
25 ; instructions have completed.
26 ;
27 ;**/
28 ;VOID
29 ;EFIAPI
30 ;SpeculationBarrier (
31 ; VOID
32 ; );
33 ;
34 SpeculationBarrier
35 dsb
36 isb
37 bx lr
38
39 END