[PATCH 1/1] MdeModulePkg: correct TPL level check CoreCreateEventEx


Heinrich Schuchardt
 

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3058

According to table Table 27. TPL Restrictions in UEFI spec 2.8 B:

Event Notification Levels must be > TPL_APPLICATION and <=3D TPL_HIGH_LEVE=
L.

Adjust the test TPL level test.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
=2D--
MdeModulePkg/Core/Dxe/Event/Event.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/MdeModulePkg/Core/Dxe/Event/Event.c b/MdeModulePkg/Core/Dxe/E=
vent/Event.c
index c83c572c8f84..e25856eaaa5f 100644
=2D-- a/MdeModulePkg/Core/Dxe/Event/Event.c
+++ b/MdeModulePkg/Core/Dxe/Event/Event.c
@@ -339,9 +339,9 @@ CoreCreateEventEx (
// If it's a notify type of event, check for invalid NotifyTpl
//
if ((Type & (EVT_NOTIFY_WAIT | EVT_NOTIFY_SIGNAL)) !=3D 0) {
- if (NotifyTpl !=3D TPL_APPLICATION &&
- NotifyTpl !=3D TPL_CALLBACK &&
- NotifyTpl !=3D TPL_NOTIFY) {
+ if (NotifyTpl !=3D TPL_CALLBACK &&
+ NotifyTpl !=3D TPL_NOTIFY &&
+ NotifyTpl !=3D TPL_HIGH_LEVEL) {
return EFI_INVALID_PARAMETER;
}
}
=2D-
2.29.2

Join devel@edk2.groups.io to automatically receive all group messages.