VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/IntelFspPkg/Library/BaseCacheAsRamLibNull/DisableCacheAsRamNull.c@ 78782

Last change on this file since 78782 was 58464, checked in by vboxsync, 10 years ago

EFI/Firmware: Export new files and directories.

  • Property svn:eol-style set to native
File size: 887 bytes
Line 
1/** @file
2
3 Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php.
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12**/
13
14#include <Uefi.h>
15#include <Library/BaseLib.h>
16#include <Library/CacheAsRamLib.h>
17
18/**
19 This function disable CAR.
20
21 @param[in] DisableCar TRUE means use INVD, FALSE means use WBINVD
22
23**/
24VOID
25EFIAPI
26DisableCacheAsRam (
27 IN BOOLEAN DisableCar
28 )
29{
30 //
31 // Disable CAR
32 //
33
34 if (DisableCar) {
35 AsmInvd ();
36 } else {
37 AsmWbinvd();
38 }
39
40 return ;
41}
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette