Update the copyright notice format
[mirror_edk2.git] / UefiCpuPkg / CpuDxe / Ia32 / IvtAsm.asm
CommitLineData
a47463f2 1 TITLE IvtAsm.asm:\r
2;------------------------------------------------------------------------------\r
3;*\r
01a1c0fc
HT
4;* Copyright (c) 2008 - 2009, Intel Corporation. All rights reserved.<BR>\r
5;* This program and the accompanying materials\r
a47463f2 6;* are licensed and made available under the terms and conditions of the BSD License\r
7;* which accompanies this distribution. The full text of the license may be found at\r
8;* http://opensource.org/licenses/bsd-license.php\r
9;*\r
10;* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11;* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12;*\r
13;* IvtAsm.asm\r
14;*\r
15;* Abstract:\r
16;*\r
17;------------------------------------------------------------------------------\r
18\r
19#include <Base.h>\r
20\r
21#ifdef MDE_CPU_IA32\r
22 .686\r
23 .model flat,C\r
24#endif\r
25 .code\r
26\r
27;------------------------------------------------------------------------------\r
28; Generic IDT Vector Handlers for the Host. They are all the same so they\r
29; will compress really well.\r
30;\r
31; By knowing the return address for Vector 00 you can can calculate the\r
32; vector number by looking at the call CommonInterruptEntry return address.\r
33; (return address - (AsmIdtVector00 + 5))/8 == IDT index\r
34;\r
35;------------------------------------------------------------------------------\r
36\r
37EXTRN CommonInterruptEntry:PROC\r
38\r
39ALIGN 8\r
40\r
41PUBLIC AsmIdtVector00\r
42\r
43AsmIdtVector00 LABEL BYTE\r
44REPEAT 256\r
45 call CommonInterruptEntry\r
46 dw ($ - AsmIdtVector00 - 5) / 8 ; vector number\r
47 nop\r
48ENDM\r
49\r
50END\r
51\r