]>
Commit | Line | Data |
---|---|---|
e83d841f | 1 | /** @file\r |
49395ea0 | 2 | Barrier to stop speculative execution (SMM version).\r |
e83d841f HW |
3 | \r |
4 | Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>\r | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT 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 | |
26 | VOID\r | |
49395ea0 | 27 | VariableSpeculationBarrier (\r |
e83d841f HW |
28 | VOID\r |
29 | )\r | |
30 | {\r | |
49395ea0 | 31 | SpeculationBarrier ();\r |
e83d841f | 32 | }\r |