]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkModulePkg/Csm/LegacyBiosDxe/IA32/InterruptTable.S
MdeModulePkg: Remove X86 ASM and S files
[mirror_edk2.git] / IntelFrameworkModulePkg / Csm / LegacyBiosDxe / IA32 / InterruptTable.S
CommitLineData
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
17ASM_GLOBAL ASM_PFX(InterruptRedirectionTemplate)\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
43ASM_PFX(InterruptRedirectionTemplate):\r
44 int $0x8\r
45 .byte 0xcf\r
46 nop\r
47 int $0x9\r
48 .byte 0xcf\r
49 nop\r
50 int $0xa\r
51 .byte 0xcf\r
52 nop\r
53 int $0xb\r
54 .byte 0xcf\r
55 nop\r
56 int $0xc\r
57 .byte 0xcf\r
58 nop\r
59 int $0xd\r
60 .byte 0xcf\r
61 nop\r
62 int $0xe\r
63 .byte 0xcf\r
64 nop\r
65 int $0xf\r
66 .byte 0xcf\r
67 nop\r