38 if (((Char < 0x20) && (Char > 0)) || (Char > 126)) {
64 Status =
gBS->LocateProtocol (&gEfiPciRootBridgeIoProtocolGuid,
NULL, (VOID **)&PciRbIo);
65 if (EFI_ERROR (Status)) {
75 Status = PciRbIo->Mem.
Read (PciRbIo, EfiPciWidthUint8, (UINT64)(
UINTN)Address, Size, Buffer);
76 if (EFI_ERROR (Status)) {
108 RtServices = (UINT32)RtPropertiesTable->RuntimeServicesSupported;
114 gShellDebug1HiiHandle,
115 EFI_RT_PROPERTIES_TABLE_VERSION,
116 (RtServices & EFI_RT_SUPPORTED_GET_TIME) ? 1 : 0,
117 (RtServices & EFI_RT_SUPPORTED_SET_TIME) ? 1 : 0,
118 (RtServices & EFI_RT_SUPPORTED_GET_WAKEUP_TIME) ? 1 : 0,
119 (RtServices & EFI_RT_SUPPORTED_SET_WAKEUP_TIME) ? 1 : 0,
120 (RtServices & EFI_RT_SUPPORTED_GET_VARIABLE) ? 1 : 0,
121 (RtServices & EFI_RT_SUPPORTED_GET_NEXT_VARIABLE_NAME) ? 1 : 0,
122 (RtServices & EFI_RT_SUPPORTED_SET_VARIABLE) ? 1 : 0,
123 (RtServices & EFI_RT_SUPPORTED_SET_VIRTUAL_ADDRESS_MAP) ? 1 : 0,
124 (RtServices & EFI_RT_SUPPORTED_CONVERT_POINTER) ? 1 : 0,
125 (RtServices & EFI_RT_SUPPORTED_GET_NEXT_HIGH_MONOTONIC_COUNT) ? 1 : 0,
126 (RtServices & EFI_RT_SUPPORTED_RESET_SYSTEM) ? 1 : 0,
127 (RtServices & EFI_RT_SUPPORTED_UPDATE_CAPSULE) ? 1 : 0,
128 (RtServices & EFI_RT_SUPPORTED_QUERY_CAPSULE_CAPABILITIES) ? 1 : 0,
129 (RtServices & EFI_RT_SUPPORTED_QUERY_VARIABLE_INFO) ? 1 : 0
132 if (EFI_ERROR (Status)) {
140 return (ShellStatus);
152 OUT CHAR16 **BaseName
160 for (StrTail = FileName +
StrLen - 1; StrTail != FileName && *StrTail != L
'\\'; StrTail--) {
163 if (StrTail == FileName) {
164 return EFI_NOT_FOUND;
167 *BaseName = StrTail+1;
186 UINTN *NumberOfImages;
193 ptr = (CHAR8 *)ExecInfoTablePtr + 1;
195 for (Image = 0; Image < *NumberOfImages; Image++, ptr += InfoPtr->
InfoSize) {
197 ImagePath = (CHAR16 *)(InfoPtr + 1);
201 switch (InfoPtr->
Action) {
202 case EFI_IMAGE_EXECUTION_AUTHENTICATION:
203 ActionType = L
"AUTHENTICATION";
205 case EFI_IMAGE_EXECUTION_AUTH_UNTESTED:
206 ActionType = L
"AUTH_UNTESTED";
208 case EFI_IMAGE_EXECUTION_AUTH_SIG_FAILED:
209 ActionType = L
"AUTH_SIG_FAILED";
211 case EFI_IMAGE_EXECUTION_AUTH_SIG_PASSED:
212 ActionType = L
"AUTH_SIG_PASSED";
214 case EFI_IMAGE_EXECUTION_AUTH_SIG_NOT_FOUND:
215 ActionType = L
"AUTH_SIG_NOT_FOUND";
217 case EFI_IMAGE_EXECUTION_AUTH_SIG_FOUND:
218 ActionType = L
"AUTH_SIG_FOUND";
220 case EFI_IMAGE_EXECUTION_POLICY_FAILED:
221 ActionType = L
"POLICY_FAILED";
223 case EFI_IMAGE_EXECUTION_INITIALIZED:
224 ActionType = L
"INITIALIZED";
227 ActionType = L
"invalid action";
235 gShellDebug1HiiHandle,
262 if (EFI_ERROR (Status)) {
270 return (ShellStatus);
297 EntryGuid = (
EFI_GUID *)(ConfProfTable + 1);
299 for (Profile = 0; Profile < ConfProfTable->NumberOfProfiles; Profile++, EntryGuid++) {
300 GuidName = L
"Unknown_Profile";
302 if (
CompareGuid (EntryGuid, &gEfiConfProfilesUefiSpecGuid)) {
303 GuidName = L
"EFI_CONFORMANCE_PROFILE_UEFI_SPEC_GUID";
306 if (
CompareGuid (EntryGuid, &gEfiConfProfilesEbbrSpec21Guid)) {
307 GuidName = L
"EBBR_2.1";
310 if (
CompareGuid (EntryGuid, &gEfiConfProfilesEbbrSpec22Guid)) {
311 GuidName = L
"EBBR_2.2";
319 gShellDebug1HiiHandle,
325 if (EFI_ERROR (Status)) {
336 gShellDebug1HiiHandle,
337 L
"EFI_CONFORMANCE_PROFILES_UEFI_SPEC_GUID",
338 &gEfiConfProfilesUefiSpecGuid
342 return (ShellStatus);
366 CHAR16 *ProblemParam;
371 UINT64 AcpiTableAddress;
372 UINT64 Acpi20TableAddress;
373 UINT64 SalTableAddress;
374 UINT64 SmbiosTableAddress;
375 UINT64 MpsTableAddress;
376 UINT64 DtbTableAddress;
377 UINT64 MemoryAttributesTableAddress;
378 UINT64 RtPropertiesTableAddress;
379 UINT64 SystemResourceTableAddress;
380 UINT64 DebugImageInfoTableAddress;
381 UINT64 ImageExecutionTableAddress;
382 UINT64 JsonConfigDataTableAddress;
383 UINT64 JsonCapsuleDataTableAddress;
384 UINT64 JsonCapsuleResultTableAddress;
385 UINT64 MemoryRangeCapsuleAddress;
386 UINT64 HiiDatabaseExportBufferAddress;
387 UINT64 ConformanceProfileTableAddress;
408 if (EFI_ERROR (Status)) {
409 if ((Status == EFI_VOLUME_CORRUPTED) && (ProblemParam !=
NULL)) {
424 Size =
sizeof (*gST);
447 if (Address == (VOID *)
gST) {
448 Acpi20TableAddress = 0;
449 AcpiTableAddress = 0;
451 SmbiosTableAddress = 0;
454 MemoryAttributesTableAddress = 0;
455 RtPropertiesTableAddress = 0;
456 SystemResourceTableAddress = 0;
457 DebugImageInfoTableAddress = 0;
458 ImageExecutionTableAddress = 0;
459 JsonConfigDataTableAddress = 0;
460 JsonCapsuleDataTableAddress = 0;
461 JsonCapsuleResultTableAddress = 0;
462 MemoryRangeCapsuleAddress = 0;
463 HiiDatabaseExportBufferAddress = 0;
464 ConformanceProfileTableAddress = 0;
547 gShellDebug1HiiHandle,
548 (UINT64)(
UINTN)Address,
562 MemoryAttributesTableAddress,
563 RtPropertiesTableAddress,
564 SystemResourceTableAddress,
565 DebugImageInfoTableAddress,
566 ImageExecutionTableAddress,
567 JsonConfigDataTableAddress,
568 JsonCapsuleDataTableAddress,
569 JsonCapsuleResultTableAddress,
570 MemoryRangeCapsuleAddress,
571 HiiDatabaseExportBufferAddress,
572 ConformanceProfileTableAddress
597 return (ShellStatus);
UINTN EFIAPI StrSize(IN CONST CHAR16 *String)
UINTN EFIAPI StrLen(IN CONST CHAR16 *String)
BOOLEAN EFIAPI CompareGuid(IN CONST GUID *Guid1, IN CONST GUID *Guid2)
SHELL_STATUS DisplayConformanceProfiles(IN UINT64 Address)
EFI_STATUS GetImageExecutionInfo()
SHELL_STATUS DisplayRtProperties(IN UINT64 Address)
SHELL_STATUS DisplayMmioMemory(IN CONST VOID *Address, IN CONST UINTN Size)
EFI_STATUS GetBaseName(IN CHAR16 *FileName, OUT CHAR16 **BaseName)
SHELL_STATUS DisplayImageExecutionEntries(IN UINT64 Address)
CHAR16 MakePrintable(IN CONST CHAR16 Char)
SHELL_STATUS EFIAPI ShellCommandRunDmem(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
VOID *EFIAPI AllocateZeroPool(IN UINTN AllocationSize)
VOID EFIAPI FreePool(IN VOID *Buffer)
#define ASSERT_EFI_ERROR(StatusParameter)
@ SHELL_INVALID_PARAMETER
EFI_STATUS EFIAPI CommandInit(VOID)
VOID EFIAPI DumpHex(IN UINTN Indent, IN UINTN Offset, IN UINTN DataSize, IN VOID *UserData)
#define ShellCommandLineParse(CheckList, CheckPackage, ProblemParam, AutoPageBreak)
Make it easy to upgrade from older versions of the shell library.
EFI_STATUS EFIAPI ShellPrintHiiEx(IN INT32 Col OPTIONAL, IN INT32 Row OPTIONAL, IN CONST CHAR8 *Language OPTIONAL, IN CONST EFI_STRING_ID HiiFormatStringId, IN CONST EFI_HII_HANDLE HiiFormatHandle,...)
BOOLEAN EFIAPI ShellCommandLineGetFlag(IN CONST LIST_ENTRY *CONST CheckPackage, IN CONST CHAR16 *CONST KeyString)
BOOLEAN EFIAPI ShellIsHexOrDecimalNumber(IN CONST CHAR16 *String, IN CONST BOOLEAN ForceHex, IN CONST BOOLEAN StopAtSpace)
@ TypeFlag
A flag that is present or not present only (IE "-a").
VOID EFIAPI ShellCommandLineFreeVarList(IN LIST_ENTRY *CheckPackage)
EFI_STATUS EFIAPI ShellInitialize(VOID)
CONST CHAR16 *EFIAPI ShellCommandLineGetRawValue(IN CONST LIST_ENTRY *CONST CheckPackage, IN UINTN Position)
UINTN EFIAPI ShellCommandLineGetCount(IN CONST LIST_ENTRY *CheckPackage)
EFI_STATUS EFIAPI ShellConvertStringToUint64(IN CONST CHAR16 *String, OUT UINT64 *Value, IN CONST BOOLEAN ForceHex, IN CONST BOOLEAN StopAtSpace)
EFI_STATUS EFIAPI EfiGetSystemConfigurationTable(IN EFI_GUID *TableGuid, OUT VOID **Table)
EFI_IMAGE_EXECUTION_ACTION Action
EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_IO_MEM Read
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * StdErr
EFI_BOOT_SERVICES * BootServices
EFI_CONFIGURATION_TABLE * ConfigurationTable
EFI_RUNTIME_SERVICES * RuntimeServices
EFI_SIMPLE_TEXT_INPUT_PROTOCOL * ConIn
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * ConOut
UINTN NumberOfTableEntries