4 ; Copyright (c) 2007 - 2008, Intel Corporation. <BR>
5 ; All rights reserved. This program and the accompanying materials
6 ; are licensed and made available under the terms and conditions of the BSD License
7 ; which accompanies this distribution. The full text of the license may be found at
8 ; http://opensource.org/licenses/bsd-license.php
10 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20 ;------------------------------------------------------------------------------
21 ; Generic IDT Vector Handlers for the Host.
23 ;------------------------------------------------------------------------------
26 PUBLIC AsmGetVectorTemplatInfo
33 db 6ah ; push #VectorNumber
36 mov eax, CommonInterruptEntry
41 AsmGetVectorTemplatInfo PROC
43 mov [ecx], @VectorTemplateBase
44 mov eax, (@VectorTemplateEnd - @VectorTemplateBase)
46 AsmGetVectorTemplatInfo ENDP
50 mov eax, dword ptr [esp + 8]
52 mov [ecx + (@VectorNum - @VectorTemplateBase)], al
57 ;---------------------------------------;
58 ; CommonInterruptEntry ;
59 ;---------------------------------------;
60 ; The follow algorithm is used for the common interrupt routine.
63 ; +---------------------+ <-- 16-byte aligned ensured by processor
65 ; +---------------------+
67 ; +---------------------+
69 ; +---------------------+
71 ; +---------------------+
73 ; +---------------------+
75 ; +---------------------+
77 ; +---------------------+
79 CommonInterruptEntry PROC
83 CommonInterruptEntry ENDP