From 6b52b72fb87d8ceaa9ac5c3969915ca7b87e17fc Mon Sep 17 00:00:00 2001 From: vanjeff Date: Tue, 16 Oct 2012 08:57:52 +0000 Subject: [PATCH] Update SmiManager() to invoke all root SMI handlers to following PI Spec. signed-off-by: Jeff Fan reviewed-by: Jiewen Yao git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13850 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Core/PiSmmCore/Smi.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Core/PiSmmCore/Smi.c b/MdeModulePkg/Core/PiSmmCore/Smi.c index 1868bbf9e1..1111959c3a 100644 --- a/MdeModulePkg/Core/PiSmmCore/Smi.c +++ b/MdeModulePkg/Core/PiSmmCore/Smi.c @@ -170,14 +170,20 @@ SmiManage ( // If a handler returns EFI_INTERRUPT_PENDING then no additional handlers // will be processed and EFI_INTERRUPT_PENDING will be returned. // - return EFI_INTERRUPT_PENDING; + if (HandlerType != NULL) { + return EFI_INTERRUPT_PENDING; + } + break; case EFI_SUCCESS: // // If a handler returns EFI_SUCCESS then no additional handlers will be processed. // then the function will return EFI_SUCCESS. // - return EFI_SUCCESS; + if (HandlerType != NULL) { + return EFI_SUCCESS; + } + break; case EFI_WARN_INTERRUPT_SOURCE_QUIESCED: // -- 2.39.2