]>
Commit | Line | Data |
---|---|---|
b341712e | 1 | #------------------------------------------------------------------------------\r |
2 | #\r | |
4ea9375a HT |
3 | # Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>\r |
4 | # This program and the accompanying materials \r | |
b341712e | 5 | # are licensed and made available under the terms and conditions of the BSD License \r |
6 | # which accompanies this distribution. The full text of the license may be found at \r | |
7 | # http://opensource.org/licenses/bsd-license.php \r | |
8 | # \r | |
9 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | #\r | |
12 | # Module Name:\r | |
13 | #\r | |
14 | # SupportItpDebug.asm\r | |
15 | # \r | |
16 | # Abstract:\r | |
17 | # \r | |
18 | # This is the code for debuging IA32, to add a break hook at loading every module\r | |
19 | #\r | |
20 | #------------------------------------------------------------------------------\r | |
21 | #include <EfiBind.h>\r | |
22 | \r | |
23 | # PROC:PRIVATE\r | |
24 | .686P: \r | |
25 | .MMX: \r | |
26 | #.MODEL SMALL\r | |
27 | .CODE: \r | |
28 | \r | |
29 | #------------------------------------------------------------------------------\r | |
30 | #------------------------------------------------------------------------------\r | |
31 | .globl ASM_PFX(AsmEfiSetBreakSupport) \r | |
32 | \r | |
33 | # VOID\r | |
34 | # AsmEfiSetBreakSupport (\r | |
35 | # IN UINTN LoadAddr\r | |
36 | # )\r | |
37 | #------------------------------------------------------------------------------\r | |
38 | ASM_PFX(AsmEfiSetBreakSupport):\r | |
39 | push %ebp\r | |
40 | mov %esp, %ebp\r | |
41 | mov 0x8(%ebp),%eax\r | |
42 | movw $60000, %dx\r | |
43 | outl %eax, %dx\r | |
44 | nop\r | |
45 | nop\r | |
46 | nop\r | |
47 | nop\r | |
48 | nop\r | |
49 | nop\r | |
50 | nop\r | |
51 | nop\r | |
52 | nop\r | |
53 | nop\r | |
54 | nop\r | |
55 | nop\r | |
56 | nop\r | |
57 | nop\r | |
58 | nop\r | |
59 | nop\r | |
60 | nop\r | |
61 | nop\r | |
62 | nop\r | |
63 | nop\r | |
64 | nop\r | |
65 | nop\r | |
66 | nop\r | |
67 | nop\r | |
68 | ret\r | |
69 | \r | |
70 | #AsmEfiSetBreakSupport ENDP\r | |
71 | \r |