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

Go to the source code of this file.

Functions

UINTN EFIAPI AsmMonitor (IN UINTN RegisterEax, IN UINTN RegisterEcx, IN UINTN RegisterEdx)
 

Detailed Description

AsmMonitor function

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

Definition in file Monitor.c.

Function Documentation

◆ AsmMonitor()

UINTN EFIAPI AsmMonitor ( IN UINTN  RegisterEax,
IN UINTN  RegisterEcx,
IN UINTN  RegisterEdx 
)

Sets up a monitor buffer that is used by AsmMwait().

Executes a MONITOR instruction with the register state specified by Eax, Ecx and Edx. 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.
RegisterEdxThe value to load into EDX or RDX before executing the MONITOR instruction.
Returns
RegisterEax

Definition at line 27 of file Monitor.c.