* [PATCH][Edk2 Platform] UserAuthFeaturePkg: Add boot menu return status code to trigger function.
@ 2021-12-07 2:22 Dong, Eric
0 siblings, 0 replies; only message in thread
From: Dong, Eric @ 2021-12-07 2:22 UTC (permalink / raw)
To: devel; +Cc: Bo Chang Ke, Sai Chaganty, Liming Gao, Dandan Bi
From: Bo Chang Ke <bo-changx.ke@intel.com>
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3764
BIOS password is not required when overriding boot device via F7 hotkey.
Add boot menu return status code in callback function
for ReportStatusCode() notification.
Signed-off-by: Bo Chang Ke <bo-changx.ke@intel.com>
Cc: Sai Chaganty <rangasai.v.chaganty@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Dandan Bi <dandan.bi@intel.com>
---
.../UserAuthenticationDxeSmm/UserAuthenticationDxe.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Features/Intel/UserInterface/UserAuthFeaturePkg/UserAuthenticationDxeSmm/UserAuthenticationDxe.c b/Features/Intel/UserInterface/UserAuthFeaturePkg/UserAuthenticationDxeSmm/UserAuthenticationDxe.c
index bba2057a96..4433fb1a20 100644
--- a/Features/Intel/UserInterface/UserAuthFeaturePkg/UserAuthenticationDxeSmm/UserAuthenticationDxe.c
+++ b/Features/Intel/UserInterface/UserAuthFeaturePkg/UserAuthenticationDxeSmm/UserAuthenticationDxe.c
@@ -355,7 +355,8 @@ CheckForPassword (
BOOLEAN PasswordSet;
if (((CodeType & EFI_STATUS_CODE_TYPE_MASK) == EFI_PROGRESS_CODE) &&
- (Value == (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_PC_USER_SETUP))) {
+ ((Value == (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_PC_USER_SETUP)) ||
+ ((Value == (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_DXE_BS_PC_READY_TO_BOOT_EVENT))))) {
//
// Check whether enter setup page.
//
--
2.26.2.windows.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-07 2:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-07 2:22 [PATCH][Edk2 Platform] UserAuthFeaturePkg: Add boot menu return status code to trigger function Dong, Eric
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox