diff options
author | Liming Gao <liming.gao@intel.com> | 2016-02-03 22:00:20 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2016-02-05 12:21:25 +0800 |
commit | c74a25f0a29b50f938263c41d990e5a9e099982e (patch) | |
tree | 6b3f691dfa6d66e398c95cc01761e89014066023 /MdeModulePkg/Core | |
parent | b2d0e0c51a6ca426ec5e9748130489eb8208af96 (diff) | |
download | edk2-platforms-c74a25f0a29b50f938263c41d990e5a9e099982e.tar.xz |
MdeModulePkg: Update DxeCore dispatcher to ignore PEI and SMM depex for FV.
If FV image without DXE depex, it will be dispatched by DxeCore.
If FV image with SMM depex, it is the invalid image. ASSERT will be trig.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Andrew Fish <afish@apple.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'MdeModulePkg/Core')
-rw-r--r-- | MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c b/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c index 0776cd6d24..69c3b11c6a 100644 --- a/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c +++ b/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c @@ -26,7 +26,7 @@ Depex - Dependency Expresion.
SOR - Schedule On Request - Don't schedule if this bit is set.
-Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 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
@@ -1249,29 +1249,6 @@ CoreFwVolEventProtocolNotify ( }
//
- // Check if this EFI_FV_FILETYPE_FIRMWARE_VOLUME_IMAGE file has PEI depex section.
- //
- DepexBuffer = NULL;
- SizeOfBuffer = 0;
- Status = Fv->ReadSection (
- Fv,
- &NameGuid,
- EFI_SECTION_PEI_DEPEX,
- 0,
- &DepexBuffer,
- &SizeOfBuffer,
- &AuthenticationStatus
- );
- if (!EFI_ERROR (Status)) {
- //
- // If PEI depex section is found, this FV image will be ignored in DXE phase.
- // Now, DxeCore doesn't support FV image with more one type DEPEX section.
- //
- FreePool (DepexBuffer);
- continue;
- }
-
- //
// Check if this EFI_FV_FILETYPE_FIRMWARE_VOLUME_IMAGE file has SMM depex section.
//
DepexBuffer = NULL;
@@ -1287,11 +1264,11 @@ CoreFwVolEventProtocolNotify ( );
if (!EFI_ERROR (Status)) {
//
- // If SMM depex section is found, this FV image will be ignored in DXE phase.
- // Now, DxeCore doesn't support FV image with more one type DEPEX section.
+ // If SMM depex section is found, this FV image is invalid to be supported.
+ // ASSERT FALSE to report this FV image.
//
FreePool (DepexBuffer);
- continue;
+ ASSERT (FALSE);
}
//
|