1 ;------------------------------------------------------------------------------
3 ; SpeculationBarrier() for AArch64
5 ; Copyright (c) 2019, Linaro Ltd. All rights reserved.
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.
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.
15 ;------------------------------------------------------------------------------
17 EXPORT SpeculationBarrier
19 AREA MemoryBarriers, CODE, READONLY
22 ; Uses as a barrier to stop speculative execution.
24 ; Ensures that no later instruction will execute speculatively, until all prior
25 ; instructions have completed.