5 ; Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>
6 ; SPDX-License-Identifier: BSD-2-Clause-Patent
13 ;------------------------------------------------------------------------------
14 ; Generic IDT Vector Handlers for the Host.
16 ;------------------------------------------------------------------------------
19 global ASM_PFX(AsmGetVectorTemplatInfo)
20 global ASM_PFX(AsmVectorFixup)
24 db 0x6a ; push #VectorNumber
27 mov eax, CommonInterruptEntry
31 global ASM_PFX(AsmGetVectorTemplatInfo)
32 ASM_PFX(AsmGetVectorTemplatInfo):
34 mov dword [ecx], @VectorTemplateBase
35 mov eax, (@VectorTemplateEnd - @VectorTemplateBase)
38 global ASM_PFX(AsmVectorFixup)
39 ASM_PFX(AsmVectorFixup):
40 mov eax, dword [esp + 8]
42 mov [ecx + (@VectorNum - @VectorTemplateBase)], al
45 ;---------------------------------------;
46 ; CommonInterruptEntry ;
47 ;---------------------------------------;
48 ; The follow algorithm is used for the common interrupt routine.
51 ; +---------------------+ <-- 16-byte aligned ensured by processor
53 ; +---------------------+
55 ; +---------------------+
57 ; +---------------------+
59 ; +---------------------+
61 ; +---------------------+
63 ; +---------------------+
65 ; +---------------------+