Update the copyright notice format
[mirror_edk2.git] / UefiCpuPkg / CpuDxe / Ia32 / IvtAsm.S
1 #------------------------------------------------------------------------------
2 #
3 # Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
4 # This program and the accompanying materials
5 # are licensed and made available under the terms and conditions of the BSD License
6 # which accompanies this distribution. The full text of the license may be found at
7 # http://opensource.org/licenses/bsd-license.php
8 #
9 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11 #
12 # Module Name:
13 #
14 # IvtAsm.S
15 #
16 # Abstract:
17 #
18 # Interrupt Vector Table
19 #
20 #------------------------------------------------------------------------------
21
22 #
23 # Interrupt Vector Table
24 #
25
26 .macro SingleIdtVectorMacro vectorNum
27 call ASM_PFX(CommonInterruptEntry)
28 .short \vectorNum
29 nop
30 .endm
31
32 .macro EightIdtVectors firstVectorNum
33 SingleIdtVectorMacro \firstVectorNum
34 SingleIdtVectorMacro "(\firstVectorNum+1)"
35 SingleIdtVectorMacro "(\firstVectorNum+2)"
36 SingleIdtVectorMacro "(\firstVectorNum+3)"
37 SingleIdtVectorMacro "(\firstVectorNum+4)"
38 SingleIdtVectorMacro "(\firstVectorNum+5)"
39 SingleIdtVectorMacro "(\firstVectorNum+6)"
40 SingleIdtVectorMacro "(\firstVectorNum+7)"
41 .endm
42
43 .macro SixtyFourIdtVectors firstVectorNum
44 EightIdtVectors \firstVectorNum
45 EightIdtVectors "(\firstVectorNum+0x08)"
46 EightIdtVectors "(\firstVectorNum+0x10)"
47 EightIdtVectors "(\firstVectorNum+0x18)"
48 EightIdtVectors "(\firstVectorNum+0x20)"
49 EightIdtVectors "(\firstVectorNum+0x28)"
50 EightIdtVectors "(\firstVectorNum+0x30)"
51 EightIdtVectors "(\firstVectorNum+0x38)"
52 .endm
53
54 ASM_GLOBAL ASM_PFX(AsmIdtVector00)
55 .p2align 3
56 ASM_PFX(AsmIdtVector00):
57 SixtyFourIdtVectors 0x00
58 SixtyFourIdtVectors 0x40
59 SixtyFourIdtVectors 0x80
60 SixtyFourIdtVectors 0xC0
61 ASM_GLOBAL ASM_PFX(AsmCommonIdtEnd)
62 ASM_PFX(AsmCommonIdtEnd):
63 .byte 0
64
65