]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/ia32/SupportItpDebug.asm
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / Pei / PeiLib / ia32 / SupportItpDebug.asm
1 ;------------------------------------------------------------------------------
2 ;
3 ; Copyright (c) 2006, Intel Corporation
4 ; All rights reserved. This program and the accompanying materials
5 ; are licensed and made available under the terms and conditions of the BSD License
6 ; which accompanies this distribution. The full text of the license may be found at
7 ; http://opensource.org/licenses/bsd-license.php
8 ;
9 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11 ;
12 ; Module Name:
13 ;
14 ; SupportItpDebug.asm
15 ;
16 ; Abstract:
17 ;
18 ; This is the code for debuging IA32, to add a break hook at loading every module
19 ;
20 ;------------------------------------------------------------------------------
21
22 ; PROC:PRIVATE
23 .686P
24 .MMX
25 .MODEL SMALL
26 .CODE
27
28 AsmEfiSetBreakSupport PROTO C LoadAddr:DWORD
29
30 ;------------------------------------------------------------------------------
31 ; VOID
32 ; AsmEfiSetBreakSupport (
33 ; IN UINTN LoadAddr
34 ; )
35 ;------------------------------------------------------------------------------
36
37 AsmEfiSetBreakSupport PROC C LoadAddr:DWORD
38
39 mov eax, LoadAddr
40 mov dx, 60000
41 out dx, eax
42 nop
43 nop
44 nop
45 nop
46 nop
47 nop
48 nop
49 nop
50 nop
51 nop
52 nop
53 nop
54 nop
55 nop
56 nop
57 nop
58 nop
59 nop
60 nop
61 nop
62 nop
63 nop
64 nop
65 nop
66 ret
67
68 AsmEfiSetBreakSupport ENDP
69 END