]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/AArch64/SpeculationBarrier.asm
MdePkg/BaseLib: Fix invalid memory access in AArch64 SetJump/LongJump
[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 ; SPDX-License-Identifier: BSD-2-Clause-Patent
8 ;
9 ;------------------------------------------------------------------------------
10
11 EXPORT SpeculationBarrier
12 AREA BaseLib_LowLevel, CODE, READONLY
13
14 ;/**
15 ; Uses as a barrier to stop speculative execution.
16 ;
17 ; Ensures that no later instruction will execute speculatively, until all prior
18 ; instructions have completed.
19 ;
20 ;**/
21 ;VOID
22 ;EFIAPI
23 ;SpeculationBarrier (
24 ; VOID
25 ; );
26 ;
27 SpeculationBarrier
28 dsb sy
29 isb
30 ret
31
32 END