TianoCore EDK2 master
Loading...
Searching...
No Matches
DisableCache.c File Reference

Go to the source code of this file.

Functions

VOID EFIAPI AsmDisableCache (VOID)
 

Detailed Description

AsmDisableCache function

Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file DisableCache.c.

Function Documentation

◆ AsmDisableCache()

VOID EFIAPI AsmDisableCache ( VOID  )

Set CD bit and clear NW bit of CR0 followed by a WBINVD.

Disables the caches by setting the CD bit of CR0 to 1, clearing the NW bit of CR0 to 0, and executing a WBINVD instruction. This function is only available on IA-32 and x64.

Definition at line 18 of file DisableCache.c.