summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/CpuExceptionHandlerLibNull
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2016-11-16 22:18:11 +0800
committerJeff Fan <jeff.fan@intel.com>2016-11-18 09:43:51 +0800
commit0e99d51637dee0940a23556f3aee2e7c89bd016f (patch)
treeae0da7df03fc8aac2f9c3db6ff16ee5b7006191d /MdeModulePkg/Library/CpuExceptionHandlerLibNull
parentc773514d457265e9ada334572641e1b137c66aac (diff)
downloadedk2-0e99d51637dee0940a23556f3aee2e7c89bd016f.zip
edk2-0e99d51637dee0940a23556f3aee2e7c89bd016f.tar.gz
edk2-0e99d51637dee0940a23556f3aee2e7c89bd016f.tar.bz2
MdeModulePkg/CpuExceptionHanderLibNull: RegisterCpuInterruptHandler()
Current CpuExceptionHanderLibNull instance returns EFI_SUCCESS for all three services. If platform does not want to hook the Exception vector for some modules (For example DxeCore), it could select this NULL instance in DSC file for those module. But some modules that want to consume RegisterCpuInterruptHandler() cannot use NULL instance. If platform does not select the correct library instance, it will does work. But the caller does not recognize it. This update is to return EFI_UNSUPPORTED on RegisterCpuInterruptHandler() in NULL instance instead of return EFI_SUCCESS. Once platform selects this NULL instance, the caller could know it from return status. Cc: Feng Tian <feng.tian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'MdeModulePkg/Library/CpuExceptionHandlerLibNull')
-rw-r--r--MdeModulePkg/Library/CpuExceptionHandlerLibNull/CpuExceptionHandlerLibNull.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Library/CpuExceptionHandlerLibNull/CpuExceptionHandlerLibNull.c b/MdeModulePkg/Library/CpuExceptionHandlerLibNull/CpuExceptionHandlerLibNull.c
index 2fea24a..68ee9a9 100644
--- a/MdeModulePkg/Library/CpuExceptionHandlerLibNull/CpuExceptionHandlerLibNull.c
+++ b/MdeModulePkg/Library/CpuExceptionHandlerLibNull/CpuExceptionHandlerLibNull.c
@@ -1,7 +1,7 @@
/** @file
CPU Exception Handler library implementition with empty functions.
- Copyright (c) 2012 - 2013, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -94,6 +94,6 @@ RegisterCpuInterruptHandler (
IN EFI_CPU_INTERRUPT_HANDLER InterruptHandler
)
{
- return EFI_SUCCESS;
+ return EFI_UNSUPPORTED;
}