]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | ;------------------------------------------------------------------------------\r |
2 | ;\r | |
4ea9375a HT |
3 | ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r |
4 | ; This program and the accompanying materials \r | |
3eb9473e | 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 X64, to add a break hook at loading every module\r | |
19 | ;\r | |
20 | ;------------------------------------------------------------------------------\r | |
21 | \r | |
22 | ; PROC:PRIVATE\r | |
23 | .CODE\r | |
24 | \r | |
25 | ;------------------------------------------------------------------------------\r | |
26 | ; VOID\r | |
27 | ; AsmEfiSetBreakSupport (\r | |
28 | ; IN UINTN LoadAddr // rcx\r | |
29 | ; )\r | |
30 | ;------------------------------------------------------------------------------\r | |
31 | \r | |
32 | AsmEfiSetBreakSupport PROC PUBLIC\r | |
33 | \r | |
34 | mov dx, 60000\r | |
35 | out dx, eax\r | |
36 | nop\r | |
37 | nop\r | |
38 | nop\r | |
39 | nop\r | |
40 | nop\r | |
41 | nop\r | |
42 | nop\r | |
43 | nop\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 | nop\r | |
69 | nop\r | |
70 | nop\r | |
71 | nop\r | |
72 | ret\r | |
73 | \r | |
74 | AsmEfiSetBreakSupport ENDP\r | |
75 | END\r | |
76 | \r |