2 ;------------------------------------------------------------------------------
4 ;* Copyright 2008 - 2009, Intel Corporation
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.
17 ;------------------------------------------------------------------------------
27 ;------------------------------------------------------------------------------
28 ; Generic IDT Vector Handlers for the Host. They are all the same so they
29 ; will compress really well.
31 ; By knowing the return address for Vector 00 you can can calculate the
32 ; vector number by looking at the call CommonInterruptEntry return address.
33 ; (return address - (AsmIdtVector00 + 5))/8 == IDT index
35 ;------------------------------------------------------------------------------
37 EXTRN CommonInterruptEntry:PROC
43 AsmIdtVector00 LABEL BYTE
45 call CommonInterruptEntry
46 dw ($ - AsmIdtVector00 - 5) / 8 ; vector number