diff options
| author | Star Zeng <star.zeng@intel.com> | 2026-01-27 23:43:59 +0800 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-03-02 15:00:09 +0000 |
| commit | 37db80097dbe4d1487191422240bdc0a9ad8d963 (patch) | |
| tree | e8bf5238971d5b96cd5ca68bdd994af03dd68e2d /StandaloneMmPkg | |
| parent | d85a9c6e23c6eff2bdcb2eec9a6c79f0b6261603 (diff) | |
| download | edk2-37db80097dbe4d1487191422240bdc0a9ad8d963.tar.gz edk2-37db80097dbe4d1487191422240bdc0a9ad8d963.zip | |
StandaloneMmPkg Core: Treat no DEPEX as TRUE
Treat no DEPEX as TRUE, then the DEPEX section can be
eliminated if a driver can be assured to have no
DEPEX needed.
Signed-off-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'StandaloneMmPkg')
| -rw-r--r-- | StandaloneMmPkg/Core/Dependency.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/StandaloneMmPkg/Core/Dependency.c b/StandaloneMmPkg/Core/Dependency.c index 0a77ceb20c..891e78424c 100644 --- a/StandaloneMmPkg/Core/Dependency.c +++ b/StandaloneMmPkg/Core/Dependency.c @@ -182,12 +182,10 @@ MmIsSchedulable ( if (DriverEntry->Depex == NULL) {
//
- // A NULL Depex means that the MM driver is not built correctly.
- // All MM drivers must have a valid depex expression.
+ // If there is no DEPEX, assume the module can be executed
//
- DEBUG ((DEBUG_DISPATCH, " RESULT = FALSE (Depex is empty)\n"));
- ASSERT (FALSE);
- return FALSE;
+ DEBUG ((DEBUG_DISPATCH, " RESULT = TRUE (No DEPEX)\n"));
+ return TRUE;
}
//
|
