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

Go to the source code of this file.

Functions

UINTN EFIAPI AsmMwait (IN UINTN RegisterEax, IN UINTN RegisterEcx)
 

Detailed Description

AsmMwait function

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

Definition in file Mwait.c.

Function Documentation

◆ AsmMwait()

UINTN EFIAPI AsmMwait ( IN UINTN  RegisterEax,
IN UINTN  RegisterEcx 
)

Executes an MWAIT instruction.

Executes an MWAIT instruction with the register state specified by Eax and Ecx. Returns Eax. This function is only available on IA-32 and x64.

Parameters
RegisterEaxThe value to load into EAX or RAX before executing the MONITOR instruction.
RegisterEcxThe value to load into ECX or RCX before executing the MONITOR instruction.
Returns
RegisterEax

Definition at line 25 of file Mwait.c.