]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/Variable/RuntimeDxe/SpeculationBarrierSmm.c
MdeModulePkg VariableStandaloneMm: Add PcdEmuVariableNvModeEnable in inf
[mirror_edk2.git] / MdeModulePkg / Universal / Variable / RuntimeDxe / SpeculationBarrierSmm.c
CommitLineData
e83d841f 1/** @file\r
49395ea0 2 Barrier to stop speculative execution (SMM version).\r
e83d841f
HW
3\r
4Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>\r
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#include <Library/BaseLib.h>\r
16#include "Variable.h"\r
17\r
18/**\r
49395ea0
HW
19 This service is consumed by the variable modules to place a barrier to stop\r
20 speculative execution.\r
21\r
22 Ensures that no later instruction will execute speculatively, until all prior\r
23 instructions have completed.\r
e83d841f
HW
24\r
25**/\r
26VOID\r
49395ea0 27VariableSpeculationBarrier (\r
e83d841f
HW
28 VOID\r
29 )\r
30{\r
49395ea0 31 SpeculationBarrier ();\r
e83d841f 32}\r