]>
Commit | Line | Data |
---|---|---|
e8de4680 A |
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.S | |
15 | # | |
16 | # Abstract: | |
17 | # | |
18 | # This is the code for debuging X64, to add a break hook at loading every module | |
19 | # | |
20 | #------------------------------------------------------------------------------ | |
21 | #include <EfiBind.h> | |
22 | ||
23 | .text | |
24 | ||
25 | .globl ASM_PFX(AsmEfiSetBreakSupport) | |
26 | ||
27 | #------------------------------------------------------------------------------ | |
28 | # VOID | |
29 | # AsmEfiSetBreakSupport ( | |
30 | # IN UINTN LoadAddr // rcx | |
31 | # ) | |
32 | #------------------------------------------------------------------------------ | |
33 | ||
34 | ASM_PFX(AsmEfiSetBreakSupport): | |
35 | ||
36 | movw $60000, %dx | |
37 | outl %eax, %dx | |
38 | nop | |
39 | nop | |
40 | nop | |
41 | nop | |
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 | nop | |
67 | nop | |
68 | nop | |
69 | nop | |
70 | nop | |
71 | nop | |
72 | nop | |
73 | nop | |
74 | ret | |
75 | ||
76 | ||
77 | ||
78 |