From: "Heinrich Schuchardt" <xypron.glpk@gmx.de>
To: devel@edk2.groups.io
Cc: Dandan Bi <dandan.bi@intel.com>,
Liming Gao <gaoliming@byosoft.com.cn>,
Heinrich Schuchardt <xypron.glpk@gmx.de>
Subject: [PATCH 1/1] MdeModulePkg: correct TPL level check CoreCreateEventEx
Date: Wed, 6 Jan 2021 18:24:27 +0100 [thread overview]
Message-ID: <20210106172427.85250-1-xypron.glpk@gmx.de> (raw)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3058
According to table Table 27. TPL Restrictions in UEFI spec 2.8 B:
Event Notification Levels must be > TPL_APPLICATION and <= TPL_HIGH_LEVEL.
Adjust the test TPL level test.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
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/Event/Event.c
index c83c572c8f84..e25856eaaa5f 100644
--- 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)) != 0) {
- if (NotifyTpl != TPL_APPLICATION &&
- NotifyTpl != TPL_CALLBACK &&
- NotifyTpl != TPL_NOTIFY) {
+ if (NotifyTpl != TPL_CALLBACK &&
+ NotifyTpl != TPL_NOTIFY &&
+ NotifyTpl != TPL_HIGH_LEVEL) {
return EFI_INVALID_PARAMETER;
}
}
--
2.29.2
next reply other threads:[~2021-01-06 17:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-06 17:24 Heinrich Schuchardt [this message]
2021-01-06 17:33 ` [edk2-devel] [PATCH 1/1] MdeModulePkg: correct TPL level check CoreCreateEventEx Michael D Kinney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210106172427.85250-1-xypron.glpk@gmx.de \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox