]>
Commit | Line | Data |
---|---|---|
bcecde14 | 1 | ;; @file\r |
2 | ; Interrupt Redirection Template\r | |
3 | ;\r | |
4 | ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r | |
5 | ;\r | |
6 | ; This program and the accompanying materials\r | |
7 | ; are licensed and made available under the terms and conditions\r | |
8 | ; of the BSD License which accompanies this distribution. The\r | |
9 | ; full text of the license may be found at\r | |
10 | ; http://opensource.org/licenses/bsd-license.php\r | |
11 | ;\r | |
12 | ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
13 | ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
14 | ;\r | |
15 | ;;\r | |
16 | \r | |
17 | text SEGMENT\r | |
18 | \r | |
19 | ;----------------------------------------------------------------------------\r | |
20 | ; Procedure: InterruptRedirectionTemplate: Redirects interrupts 0x68-0x6F \r | |
21 | ;\r | |
22 | ; Input: None\r | |
23 | ;\r | |
24 | ; Output: None\r | |
25 | ;\r | |
26 | ; Prototype: VOID\r | |
27 | ; InterruptRedirectionTemplate ( \r | |
28 | ; VOID\r | |
29 | ; );\r | |
30 | ;\r | |
31 | ; Saves: None\r | |
32 | ;\r | |
33 | ; Modified: None\r | |
34 | ;\r | |
35 | ; Description: Contains the code that is copied into low memory (below 640K).\r | |
36 | ; This code reflects interrupts 0x68-0x6f to interrupts 0x08-0x0f.\r | |
37 | ; This template must be copied into low memory, and the IDT entries\r | |
38 | ; 0x68-0x6F must be point to the low memory copy of this code. Each\r | |
39 | ; entry is 4 bytes long, so IDT entries 0x68-0x6F can be easily \r | |
40 | ; computed.\r | |
41 | ;\r | |
42 | ;----------------------------------------------------------------------------\r | |
43 | \r | |
44 | InterruptRedirectionTemplate PROC\r | |
45 | int 08h\r | |
46 | DB 0cfh ; IRET\r | |
47 | nop\r | |
48 | int 09h\r | |
49 | DB 0cfh ; IRET\r | |
50 | nop\r | |
51 | int 0ah\r | |
52 | DB 0cfh ; IRET\r | |
53 | nop\r | |
54 | int 0bh\r | |
55 | DB 0cfh ; IRET\r | |
56 | nop\r | |
57 | int 0ch\r | |
58 | DB 0cfh ; IRET\r | |
59 | nop\r | |
60 | int 0dh\r | |
61 | DB 0cfh ; IRET\r | |
62 | nop\r | |
63 | int 0eh\r | |
64 | DB 0cfh ; IRET\r | |
65 | nop\r | |
66 | int 0fh\r | |
67 | DB 0cfh ; IRET\r | |
68 | nop\r | |
69 | InterruptRedirectionTemplate ENDP\r | |
70 | \r | |
71 | END |