Update the copyright notice format
[mirror_edk2.git] / UefiCpuPkg / CpuDxe / Ia32 / IvtAsm.S
CommitLineData
c2fd60f0 1#------------------------------------------------------------------------------\r
2#\r
01a1c0fc
HT
3# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
4# This program and the accompanying materials\r
c2fd60f0 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# IvtAsm.S\r
15#\r
16# Abstract:\r
17#\r
18# Interrupt Vector Table\r
19#\r
20#------------------------------------------------------------------------------\r
21\r
22#\r
23# Interrupt Vector Table\r
24#\r
25\r
26.macro SingleIdtVectorMacro vectorNum\r
27 call ASM_PFX(CommonInterruptEntry)\r
28 .short \vectorNum\r
29 nop\r
30.endm\r
31\r
32.macro EightIdtVectors firstVectorNum\r
33 SingleIdtVectorMacro \firstVectorNum\r
34 SingleIdtVectorMacro "(\firstVectorNum+1)"\r
35 SingleIdtVectorMacro "(\firstVectorNum+2)"\r
36 SingleIdtVectorMacro "(\firstVectorNum+3)"\r
37 SingleIdtVectorMacro "(\firstVectorNum+4)"\r
38 SingleIdtVectorMacro "(\firstVectorNum+5)"\r
39 SingleIdtVectorMacro "(\firstVectorNum+6)"\r
40 SingleIdtVectorMacro "(\firstVectorNum+7)"\r
41.endm\r
42\r
43.macro SixtyFourIdtVectors firstVectorNum\r
44 EightIdtVectors \firstVectorNum\r
45 EightIdtVectors "(\firstVectorNum+0x08)"\r
46 EightIdtVectors "(\firstVectorNum+0x10)"\r
47 EightIdtVectors "(\firstVectorNum+0x18)"\r
48 EightIdtVectors "(\firstVectorNum+0x20)"\r
49 EightIdtVectors "(\firstVectorNum+0x28)"\r
50 EightIdtVectors "(\firstVectorNum+0x30)"\r
51 EightIdtVectors "(\firstVectorNum+0x38)"\r
52.endm\r
53\r
54ASM_GLOBAL ASM_PFX(AsmIdtVector00)\r
c8adfe9d 55.p2align 3\r
c2fd60f0 56ASM_PFX(AsmIdtVector00):\r
57 SixtyFourIdtVectors 0x00\r
58 SixtyFourIdtVectors 0x40\r
59 SixtyFourIdtVectors 0x80\r
60 SixtyFourIdtVectors 0xC0\r
61ASM_GLOBAL ASM_PFX(AsmCommonIdtEnd)\r
62ASM_PFX(AsmCommonIdtEnd):\r
63 .byte 0\r
64\r
65\r