1 #------------------------------------------------------------------------------
3 # Copyright (c) 2006 - 2009, Intel Corporation
4 # All rights reserved. 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
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.
18 # Interrupt Vector Table
20 #------------------------------------------------------------------------------
23 # Interrupt Vector Table
26 .macro SingleIdtVectorMacro vectorNum
27 call ASM_PFX(CommonInterruptEntry)
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)"
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)"
54 ASM_GLOBAL ASM_PFX(AsmIdtVector00)
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):