From 57f360f2615818366b39ff21fcd0201154be4ab2 Mon Sep 17 00:00:00 2001 From: Jeff Fan Date: Fri, 22 Nov 2013 06:15:51 +0000 Subject: 1. DxeIplPeim will locate Vector Handoff Table PPI and build GUIDed HOB if it has. 2. DxeMain will get Vector Handoff Table GUIDed HOB to install configuration table if it has. 3. Updated CPU Exception Handler Library to provide 3 new APIs to replace original one API and updated NULL instance accordingly. 4. Updated DxeMain/CapsuleX64/BootSriptExectorDxe to use the new API in CPU Exception Handler Lib. Signed-off-by: Jeff Fan Reviewed-by: Liming Gao Reviewed-by: Jiewen Yao Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14884 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Universal/Acpi/BootScriptExecutorDxe/IA32/SetIdtEntry.c | 6 ++++-- MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/SetIdtEntry.c | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'MdeModulePkg/Universal/Acpi') diff --git a/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/IA32/SetIdtEntry.c b/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/IA32/SetIdtEntry.c index 04eba0d756..63b06ba5d6 100644 --- a/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/IA32/SetIdtEntry.c +++ b/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/IA32/SetIdtEntry.c @@ -3,7 +3,7 @@ Set a IDT entry for interrupt vector 3 for debug purpose for IA32 platform -Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -30,6 +30,7 @@ SetIdtEntry ( IA32_IDT_GATE_DESCRIPTOR *IdtEntry; IA32_DESCRIPTOR *IdtDescriptor; UINTN S3DebugBuffer; + EFI_STATUS Status; // // Restore IDT for debug @@ -40,7 +41,8 @@ SetIdtEntry ( // // Setup the default CPU exception handlers // - SetupCpuExceptionHandlers (); + Status = InitializeCpuExceptionHandlers (NULL); + ASSERT_EFI_ERROR (Status); DEBUG_CODE ( // diff --git a/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/SetIdtEntry.c b/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/SetIdtEntry.c index a8944e600c..2d15f5b5d1 100644 --- a/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/SetIdtEntry.c +++ b/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/SetIdtEntry.c @@ -99,6 +99,7 @@ SetIdtEntry ( IA32_IDT_GATE_DESCRIPTOR *IdtEntry; IA32_DESCRIPTOR *IdtDescriptor; UINTN S3DebugBuffer; + EFI_STATUS Status; // // Restore IDT for debug @@ -109,7 +110,8 @@ SetIdtEntry ( // // Setup the default CPU exception handlers // - SetupCpuExceptionHandlers (); + Status = InitializeCpuExceptionHandlers (NULL); + ASSERT_EFI_ERROR (Status); DEBUG_CODE ( // -- cgit v1.2.3