]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/Variable/RuntimeDxe/SpeculationBarrierSmm.c
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Universal / Variable / RuntimeDxe / SpeculationBarrierSmm.c
1 /** @file
2 Barrier to stop speculative execution (SMM version).
3
4 Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #include <Library/BaseLib.h>
10 #include "Variable.h"
11
12 /**
13 This service is consumed by the variable modules to place a barrier to stop
14 speculative execution.
15
16 Ensures that no later instruction will execute speculatively, until all prior
17 instructions have completed.
18
19 **/
20 VOID
21 VariableSpeculationBarrier (
22 VOID
23 )
24 {
25 SpeculationBarrier ();
26 }