]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ia32/Monitor.c
d521e1914084c19d2a3ecc365f62f1d4635ffe45
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Library / BaseLib / Ia32 / Monitor.c
1 /**
2 AsmMonitor function
3
4 Copyright (c) 2006 - 2007, Intel Corporation
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 #include "BaseLibInternals.h"
16
17 UINTN
18 EFIAPI
19 AsmMonitor (
20 IN UINTN RegisterEax,
21 IN UINTN RegisterEcx,
22 IN UINTN RegisterEdx
23 )
24 {
25 _asm {
26 mov eax, RegisterEax
27 mov ecx, RegisterEcx
28 mov edx, RegisterEdx
29 _emit 0x0f // monitor
30 _emit 0x01
31 _emit 0xc8
32 }
33 }
34