mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
MdeModulePkg: Use UefiSpec.h defined macro to replace L"xxx" string
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Sunny Wang <sunnywang@hpe.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18861 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
dc477dd27d
commit
cc4812f63e
@ -672,7 +672,7 @@ BdsFormalizeOSIndicationVariable (
|
|||||||
//
|
//
|
||||||
OsIndicationSupport = EFI_OS_INDICATIONS_BOOT_TO_FW_UI;
|
OsIndicationSupport = EFI_OS_INDICATIONS_BOOT_TO_FW_UI;
|
||||||
Status = gRT->SetVariable (
|
Status = gRT->SetVariable (
|
||||||
L"OsIndicationsSupported",
|
EFI_OS_INDICATIONS_SUPPORT_VARIABLE_NAME,
|
||||||
&gEfiGlobalVariableGuid,
|
&gEfiGlobalVariableGuid,
|
||||||
EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,
|
EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,
|
||||||
sizeof(UINT64),
|
sizeof(UINT64),
|
||||||
@ -694,7 +694,7 @@ BdsFormalizeOSIndicationVariable (
|
|||||||
Attributes = 0;
|
Attributes = 0;
|
||||||
DataSize = sizeof(UINT64);
|
DataSize = sizeof(UINT64);
|
||||||
Status = gRT->GetVariable (
|
Status = gRT->GetVariable (
|
||||||
L"OsIndications",
|
EFI_OS_INDICATIONS_VARIABLE_NAME,
|
||||||
&gEfiGlobalVariableGuid,
|
&gEfiGlobalVariableGuid,
|
||||||
&Attributes,
|
&Attributes,
|
||||||
&DataSize,
|
&DataSize,
|
||||||
@ -711,7 +711,7 @@ BdsFormalizeOSIndicationVariable (
|
|||||||
|
|
||||||
DEBUG ((EFI_D_ERROR, "[Bds] Unformalized OsIndications variable exists. Delete it\n"));
|
DEBUG ((EFI_D_ERROR, "[Bds] Unformalized OsIndications variable exists. Delete it\n"));
|
||||||
Status = gRT->SetVariable (
|
Status = gRT->SetVariable (
|
||||||
L"OsIndications",
|
EFI_OS_INDICATIONS_VARIABLE_NAME,
|
||||||
&gEfiGlobalVariableGuid,
|
&gEfiGlobalVariableGuid,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
@ -737,9 +737,9 @@ BdsFormalizeEfiGlobalVariable (
|
|||||||
//
|
//
|
||||||
// Validate Console variable.
|
// Validate Console variable.
|
||||||
//
|
//
|
||||||
BdsFormalizeConsoleVariable (L"ConIn");
|
BdsFormalizeConsoleVariable (EFI_CON_IN_VARIABLE_NAME);
|
||||||
BdsFormalizeConsoleVariable (L"ConOut");
|
BdsFormalizeConsoleVariable (EFI_CON_OUT_VARIABLE_NAME);
|
||||||
BdsFormalizeConsoleVariable (L"ErrOut");
|
BdsFormalizeConsoleVariable (EFI_ERR_OUT_VARIABLE_NAME);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Validate OSIndication related variable.
|
// Validate OSIndication related variable.
|
||||||
@ -1045,7 +1045,7 @@ BdsEntry (
|
|||||||
//
|
//
|
||||||
DataSize = sizeof (UINT64);
|
DataSize = sizeof (UINT64);
|
||||||
Status = gRT->GetVariable (
|
Status = gRT->GetVariable (
|
||||||
L"OsIndications",
|
EFI_OS_INDICATIONS_VARIABLE_NAME,
|
||||||
&gEfiGlobalVariableGuid,
|
&gEfiGlobalVariableGuid,
|
||||||
NULL,
|
NULL,
|
||||||
&DataSize,
|
&DataSize,
|
||||||
@ -1062,7 +1062,7 @@ BdsEntry (
|
|||||||
if (BootFwUi) {
|
if (BootFwUi) {
|
||||||
OsIndication &= ~((UINT64) EFI_OS_INDICATIONS_BOOT_TO_FW_UI);
|
OsIndication &= ~((UINT64) EFI_OS_INDICATIONS_BOOT_TO_FW_UI);
|
||||||
Status = gRT->SetVariable (
|
Status = gRT->SetVariable (
|
||||||
L"OsIndications",
|
EFI_OS_INDICATIONS_VARIABLE_NAME,
|
||||||
&gEfiGlobalVariableGuid,
|
&gEfiGlobalVariableGuid,
|
||||||
EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_NON_VOLATILE,
|
EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_NON_VOLATILE,
|
||||||
sizeof(UINT64),
|
sizeof(UINT64),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user