5 ; Copyright (c) 2007 - 2008, Intel Corporation. All rights reserved.<BR>
6 ; 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 ;------------------------------------------------------------------------------
22 ; Generic IDT Vector Handlers for the Host.
24 ;------------------------------------------------------------------------------
27 PUBLIC AsmGetVectorTemplatInfo
34 db 6ah ; push #VectorNumber
37 mov eax, CommonInterruptEntry
42 AsmGetVectorTemplatInfo PROC
44 mov [ecx], @VectorTemplateBase
45 mov eax, (@VectorTemplateEnd - @VectorTemplateBase)
47 AsmGetVectorTemplatInfo ENDP
51 mov eax, dword ptr [esp + 8]
53 mov [ecx + (@VectorNum - @VectorTemplateBase)], al
58 ;---------------------------------------;
59 ; CommonInterruptEntry ;
60 ;---------------------------------------;
61 ; The follow algorithm is used for the common interrupt routine.
64 ; +---------------------+ <-- 16-byte aligned ensured by processor
66 ; +---------------------+
68 ; +---------------------+
70 ; +---------------------+
72 ; +---------------------+
74 ; +---------------------+
76 ; +---------------------+
78 ; +---------------------+
80 CommonInterruptEntry PROC
84 CommonInterruptEntry ENDP