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 ##------------------------------------------------------------------------------
20 GCC_ASM_EXPORT(SpeculationBarrier)
24 # Uses as a barrier to stop speculative execution.
26 # Ensures that no later instruction will execute speculatively, until all prior
27 # instructions have completed.
36 ASM_PFX(SpeculationBarrier):