]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFspPkg/Library/BaseCacheAsRamLibNull/DisableCacheAsRamNull.c
Eliminate duplicated file GUID.
[mirror_edk2.git] / IntelFspPkg / Library / BaseCacheAsRamLibNull / DisableCacheAsRamNull.c
CommitLineData
c8ec22a2
JY
1/** @file\r
2\r
3 Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
4 This program and the accompanying materials\r
5 are licensed and made available under the terms and conditions of the BSD License\r
6 which accompanies this distribution. The full text of the license may be found at\r
7 http://opensource.org/licenses/bsd-license.php.\r
8\r
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11\r
12**/\r
13\r
14#include <Uefi.h>\r
15#include <Library/BaseLib.h>\r
16#include <Library/CacheAsRamLib.h>\r
17\r
18/**\r
19 This function disable CAR.\r
20\r
21 @param[in] DisableCar TRUE means use INVD, FALSE means use WBINVD\r
22\r
23**/\r
24VOID\r
25EFIAPI\r
26DisableCacheAsRam (\r
27 IN BOOLEAN DisableCar\r
28 )\r
29{\r
30 //\r
31 // Disable CAR\r
32 //\r
33\r
34 if (DisableCar) {\r
35 AsmInvd ();\r
36 } else {\r
37 AsmWbinvd();\r
38 }\r
39\r
40 return ;\r
41}\r