Revision: 16556 http://sourceforge.net/p/edk2/code/16556 Author: li-elvin Date: 2014-12-24 00:53:11 +0000 (Wed, 24 Dec 2014) Log Message: ----------- Address the potential system TPL does not been restore.
This patch make sure the TPL been raised and restored in pair. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Deric Cole <deric_c...@phoenix.com> Reviewed-by: Elvin Li <elvin...@intel.com> Modified Paths: -------------- trunk/edk2/IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/BiosKeyboard.c Modified: trunk/edk2/IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/BiosKeyboard.c =================================================================== --- trunk/edk2/IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/BiosKeyboard.c 2014-12-23 09:56:33 UTC (rev 16555) +++ trunk/edk2/IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/BiosKeyboard.c 2014-12-24 00:53:11 UTC (rev 16556) @@ -1,7 +1,7 @@ /** @file ConsoleOut Routines that speak VGA. -Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR> +Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions @@ -2202,15 +2202,18 @@ Status = KeyboardWrite (BiosKeyboardPrivate, 0xed); if (EFI_ERROR (Status)) { - return EFI_DEVICE_ERROR; + Status = EFI_DEVICE_ERROR; + goto Exit; } Status = KeyboardWaitForValue (BiosKeyboardPrivate, 0xfa, KEYBOARD_WAITFORVALUE_TIMEOUT); if (EFI_ERROR (Status)) { - return EFI_DEVICE_ERROR; + Status = EFI_DEVICE_ERROR; + goto Exit; } Status = KeyboardWrite (BiosKeyboardPrivate, Command); if (EFI_ERROR (Status)) { - return EFI_DEVICE_ERROR; + Status = EFI_DEVICE_ERROR; + goto Exit; } // // Call Legacy BIOS Protocol to set whatever is necessary @@ -2219,6 +2222,7 @@ Status = EFI_SUCCESS; +Exit: // // Leave critical section and return // ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits