]>
Commit | Line | Data |
---|---|---|
41d80e81 | 1 | #------------------------------------------------------------------------------ |
2 | # | |
3 | # Copyright (c) 2008, 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 | #include <EfiBind.h> | |
22 | ||
23 | # PROC:PRIVATE | |
24 | .686P: | |
25 | .MMX: | |
26 | #.MODEL SMALL | |
27 | .CODE: | |
28 | ||
29 | #------------------------------------------------------------------------------ | |
30 | #------------------------------------------------------------------------------ | |
31 | .globl ASM_PFX(AsmEfiSetBreakSupport) | |
32 | ||
33 | # VOID | |
34 | # AsmEfiSetBreakSupport ( | |
35 | # IN UINTN LoadAddr | |
36 | # ) | |
37 | #------------------------------------------------------------------------------ | |
38 | ASM_PFX(AsmEfiSetBreakSupport): | |
39 | push %ebp | |
40 | mov %esp, %ebp | |
41 | mov 0x8(%ebp),%eax | |
42 | movw $60000, %dx | |
43 | outl %eax, %dx | |
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 | nop | |
67 | nop | |
68 | ret | |
69 | ||
70 | #AsmEfiSetBreakSupport ENDP | |
71 |