5 # Copyright (c) 2007 - 2008, Intel Corporation. <BR>
6 # All rights reserved. This program and the accompanying materials
7 # are licensed and made available under the terms and conditions of the BSD License
8 # which accompanies this distribution. The full text of the license may be found at
9 # http://opensource.org/licenses/bsd-license.php
11 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
21 .globl ASM_PFX(AsmGetVectorTemplatInfo)
22 .globl ASM_PFX(AsmVectorFixup)
25 ;-----------------------------------------------------------------------
26 ; Template of IDT Vector Handlers.
28 ;-----------------------------------------------------------------------
32 .byte 0x6a # push #VectorNum
35 movl CommonInterruptEntry, %eax
40 ASM_PFX(AsmGetVectorTemplatInfo):
42 movl $@VectorTemplateBase, (%ecx)
43 movl $(@VectorTemplateEnd - @VectorTemplateBase), %eax
46 ASM_PFX(AsmVectorFixup):
49 movb %al, (@VectorNum - @VectorTemplateBase)(%ecx)
53 ; The follow algorithm is used for the common interrupt routine.
56 ; +---------------------+ <-- 16-byte aligned ensured by processor
58 ; +---------------------+
60 ; +---------------------+
62 ; +---------------------+
64 ; +---------------------+
66 ; +---------------------+
68 ; +---------------------+
70 ; +---------------------+