]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ebc/SpeculationBarrier.c
MdePkg/BaseLib: Introduce new SpeculationBarrier API
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ebc / SpeculationBarrier.c
1 /** @file
2 SpeculationBarrier() function for EBC.
3
4 Copyright (C) 2018, Intel Corporation. All rights reserved.<BR>
5
6 This program and the accompanying materials are licensed and made available
7 under the terms and conditions of the BSD License which accompanies this
8 distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php.
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT
12 WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 **/
15
16
17 /**
18 Uses as a barrier to stop speculative execution.
19
20 Ensures that no later instruction will execute speculatively, until all prior
21 instructions have completed.
22
23 **/
24 VOID
25 EFIAPI
26 SpeculationBarrier (
27 VOID
28 )
29 {
30 }