]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/Monitor.c
Import some basic libraries instances for Mde Packages.
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / Monitor.c
1 /** @file
2 AsmMonitor function
3
4 Copyright (c) 2006 - 2007, Intel Corporation<BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 //
16 // Include common header file for this module.
17 //
18 #include "CommonHeader.h"
19
20 UINTN
21 EFIAPI
22 AsmMonitor (
23 IN UINTN RegisterEax,
24 IN UINTN RegisterEcx,
25 IN UINTN RegisterEdx
26 )
27 {
28 _asm {
29 mov eax, RegisterEax
30 mov ecx, RegisterEcx
31 mov edx, RegisterEdx
32 _emit 0x0f // monitor
33 _emit 0x01
34 _emit 0xc8
35 }
36 }
37