]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Ia32/SupportItpDebug.asm
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / Pei / PeiLib / Ia32 / SupportItpDebug.asm
CommitLineData
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 IA32, to add a break hook at loading every module\r
19;\r
20;------------------------------------------------------------------------------\r
21\r
22; PROC:PRIVATE\r
23 .686P\r
24 .MMX\r
25 .MODEL SMALL\r
26 .CODE\r
27\r
28AsmEfiSetBreakSupport PROTO C LoadAddr:DWORD\r
29\r
30;------------------------------------------------------------------------------\r
31; VOID\r
32; AsmEfiSetBreakSupport (\r
33; IN UINTN LoadAddr\r
34; )\r
35;------------------------------------------------------------------------------\r
36\r
37AsmEfiSetBreakSupport PROC C LoadAddr:DWORD\r
38\r
39 mov eax, LoadAddr\r
40 mov dx, 60000\r
41 out dx, eax\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 ret\r
67 \r
68AsmEfiSetBreakSupport ENDP\r
69 END\r