/*++\r
\r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
\r
--*/\r
{\r
- RegisterSet->E.EIP = (UINT16)((UINT32 *)NULL)[IntNumber];\r
- RegisterSet->E.CS = (UINT16)(((UINT32 *)NULL)[IntNumber] >> 16);\r
+ UINT32 *VectorBase;\r
+ \r
+ //\r
+ // The base address of legacy interrupt vector table is 0.\r
+ // We use this base address to get the legacy interrupt handler.\r
+ //\r
+ VectorBase = 0;\r
+ RegisterSet->E.EIP = (UINT16)(VectorBase)[IntNumber];\r
+ RegisterSet->E.CS = (UINT16)((VectorBase)[IntNumber] >> 16);\r
\r
return AsmThunk16 (ThunkContext, RegisterSet, Flags | THUNK_INTERRUPT);\r
}\r