Commit ae7e5477 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Barton Gao
Browse files

uefi-sct/SctPkg: allowable NotifyTpl in CreateEventEx

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



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

Event Notification Levels must be "> TPL_APPLICATION" and "<= TPL_HIGH_LEVEL".

In the conformance test for CreateEvent() check that TPL_APPLICATION
results in EFI_INVALID_PARAMETER if the event can be notified.

Run the other conformance tests for TPL_HIGH_LEVEL, too.
Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-By: Samer El-Haj-Mahmoud's avatarSamer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>
parent b8a7e423
......@@ -228,6 +228,7 @@ BBTestCreateEventEx_Conf_Sub1 (
EFI_TPL NotifyTpls[] = {
TPL_CALLBACK,
TPL_NOTIFY,
TPL_HIGH_LEVEL,
0
};
EFI_GUID *EventGroups[] = {
......@@ -317,6 +318,7 @@ BBTestCreateEventEx_Conf_Sub2 (
EFI_TPL NotifyTpls[] = {
TPL_CALLBACK,
TPL_NOTIFY,
TPL_HIGH_LEVEL,
0
};
EFI_GUID *EventGroups[] = {
......@@ -411,6 +413,7 @@ BBTestCreateEventEx_Conf_Sub3 (
EFI_TPL NotifyTpls[] = {
TPL_CALLBACK,
TPL_NOTIFY,
TPL_HIGH_LEVEL,
0
};
EFI_GUID *EventGroups[] = {
......@@ -492,6 +495,8 @@ BBTestCreateEventEx_Conf_Sub4 (
};
EFI_TPL InvalidNotifyTpls[] = {
(EFI_TPL) (TPL_HIGH_LEVEL + 1),
(EFI_TPL) TPL_APPLICATION,
(EFI_TPL) (TPL_APPLICATION - 1),
(EFI_TPL) -1,
0
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment