VirtualBox

Ignore:
Timestamp:
Aug 14, 2024 1:16:30 PM (6 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164367
Message:

Devices/EFI/FirmwareNew: Merge edk2-stable-202405 and make it build on aarch64, bugref:4643

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
4 added
36 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c

    r99404 r105670  
    25502550
    25512551
    2552 @retval EFI_SUCCESS           The operation was sucessful
     2552@retval EFI_SUCCESS           The operation was successful
    25532553@retval EFI_OUT_OF_RESOURCES  A memory allocation failed
    25542554@retval EFI_INVALID_PARAMETER Guid NameId was invalid
     
    25962596  @param[in] Lang       RFC4646 language code list or NULL
    25972597
    2598   @retval EFI_SUCCESS           The operation was sucessful
     2598  @retval EFI_SUCCESS           The operation was successful
    25992599  @retval EFI_ACCESS_DENIED     There was a duplicate
    26002600  @retval EFI_OUT_OF_RESOURCES  A memory allocation failed
     
    27092709  @param[out] Guid          The pointer to the Guid.
    27102710
    2711   @retval EFI_SUCCESS       The operation was sucessful.
     2711  @retval EFI_SUCCESS       The operation was successful.
    27122712**/
    27132713EFI_STATUS
     
    33133313  If MatchingHandleCount is NULL, then ASSERT.
    33143314
    3315   If MatchingHandleBuffer is not NULL upon a sucessful return the memory must be
     3315  If MatchingHandleBuffer is not NULL upon a successful return the memory must be
    33163316  caller freed.
    33173317
     
    33223322  @param[in] MatchingHandleCount    Poitner to UINTN specifying number of HANDLES in
    33233323                                    MatchingHandleBuffer.
    3324   @param[out] MatchingHandleBuffer  On a sucessful return a buffer of MatchingHandleCount
     3324  @param[out] MatchingHandleBuffer  On a successful return a buffer of MatchingHandleCount
    33253325                                    EFI_HANDLEs and a terminating NULL EFI_HANDLE.
    33263326
    3327   @retval EFI_SUCCESS               The operation was sucessful and any related handles
     3327  @retval EFI_SUCCESS               The operation was successful and any related handles
    33283328                                    are in MatchingHandleBuffer;
    33293329  @retval EFI_NOT_FOUND             No matching handles were found.
     
    34513451
    34523452
    3453   @retval EFI_SUCCESS               The operation was sucessful.
     3453  @retval EFI_SUCCESS               The operation was successful.
    34543454**/
    34553455EFI_STATUS
     
    36143614  @param[out] MatchingHandleBuffer  Buffer containing handles on a successful
    36153615                                    return.
    3616   @retval EFI_SUCCESS               The operation was sucessful.
     3616  @retval EFI_SUCCESS               The operation was successful.
    36173617  @sa ParseHandleDatabaseByRelationship
    36183618**/
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.h

    r99404 r105670  
    732732
    733733/**
     734  This function parses the ACPI HPET table.
     735
     736  @param [in] Trace              If TRUE, trace the ACPI fields.
     737  @param [in] Ptr                Pointer to the start of the buffer.
     738  @param [in] AcpiTableLength    Length of the ACPI table.
     739  @param [in] AcpiTableRevision  Revision of the ACPI table.
     740**/
     741VOID
     742EFIAPI
     743ParseAcpiHpet (
     744  IN BOOLEAN  Trace,
     745  IN UINT8    *Ptr,
     746  IN UINT32   AcpiTableLength,
     747  IN UINT8    AcpiTableRevision
     748  );
     749
     750/**
    734751  This function parses the ACPI IORT table.
    735752  When trace is enabled this function parses the IORT table and
     
    970987
    971988/**
     989  This function parses the ACPI WSMT table.
     990
     991  @param [in] Trace              If TRUE, trace the ACPI fields.
     992  @param [in] Ptr                Pointer to the start of the buffer.
     993  @param [in] AcpiTableLength    Length of the ACPI table.
     994  @param [in] AcpiTableRevision  Revision of the ACPI table.
     995**/
     996VOID
     997EFIAPI
     998ParseAcpiWsmt (
     999  IN BOOLEAN  Trace,
     1000  IN UINT8    *Ptr,
     1001  IN UINT32   AcpiTableLength,
     1002  IN UINT8    AcpiTableRevision
     1003  );
     1004
     1005/**
    9721006  This function parses the ACPI XSDT table
    9731007  and optionally traces the ACPI table fields.
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Madt/MadtParser.c

    r99404 r105670  
    22  MADT table parser
    33
    4   Copyright (c) 2016 - 2020, ARM Limited. All rights reserved.
     4  Copyright (c) 2016 - 2023, ARM Limited. All rights reserved.
    55  Copyright (c) 2022, AMD Incorporated. All rights reserved.
    66  SPDX-License-Identifier: BSD-2-Clause-Patent
     
    9999
    100100/**
     101  This function validates the TRBE Interrupt in the GICC.
     102
     103  @param [in] Ptr     Pointer to the start of the field data.
     104  @param [in] Context Pointer to context specific information e.g. this
     105                      could be a pointer to the ACPI table header.
     106**/
     107STATIC
     108VOID
     109EFIAPI
     110ValidateTrbeInterrupt (
     111  IN UINT8  *Ptr,
     112  IN VOID   *Context
     113  )
     114{
     115  UINT16  TrbeInterrupt;
     116
     117  TrbeInterrupt = *(UINT16 *)Ptr;
     118
     119  // SPE not supported by this processor
     120  if (TrbeInterrupt == 0) {
     121    return;
     122  }
     123
     124  if ((TrbeInterrupt < ARM_PPI_ID_MIN) ||
     125      ((TrbeInterrupt > ARM_PPI_ID_MAX) &&
     126       (TrbeInterrupt < ARM_PPI_ID_EXTENDED_MIN)) ||
     127      (TrbeInterrupt > ARM_PPI_ID_EXTENDED_MAX))
     128  {
     129    IncrementErrorCount ();
     130    Print (
     131      L"\nERROR: TRBE Interrupt ID of %d is not in the allowed PPI ID "
     132      L"ranges of %d-%d or %d-%d (for GICv3.1 or later).",
     133      TrbeInterrupt,
     134      ARM_PPI_ID_MIN,
     135      ARM_PPI_ID_MAX,
     136      ARM_PPI_ID_EXTENDED_MIN,
     137      ARM_PPI_ID_EXTENDED_MAX
     138      );
     139  }
     140}
     141
     142/**
    101143  An ACPI_PARSER array describing the GICC Interrupt Controller Structure.
    102144**/
     
    123165  { L"Reserved",                         1, 77, L"0x%x",  NULL, NULL, NULL, NULL },
    124166  { L"SPE overflow Interrupt",           2, 78, L"0x%x",  NULL, NULL,
    125     ValidateSpeOverflowInterrupt, NULL }
     167    ValidateSpeOverflowInterrupt, NULL },
     168  { L"TRBE Interrupt",                   2, 80, L"0x%x",  NULL, NULL,
     169    ValidateTrbeInterrupt, NULL }
    126170};
    127171
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.c

    r99404 r105670  
    6060  { EFI_ACPI_6_4_GENERIC_TIMER_DESCRIPTION_TABLE_SIGNATURE,                                              ParseAcpiGtdt },
    6161  { EFI_ACPI_6_4_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_SIGNATURE,                                         ParseAcpiHmat },
     62  { EFI_ACPI_6_5_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE,                                             ParseAcpiHpet },
    6263  { EFI_ACPI_6_2_IO_REMAPPING_TABLE_SIGNATURE,                                                           ParseAcpiIort },
    6364  { EFI_ACPI_6_2_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE,                                              ParseAcpiMadt },
     
    7374  { EFI_ACPI_6_2_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE,                                               ParseAcpiSrat },
    7475  { EFI_ACPI_6_2_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE,                                           ParseAcpiSsdt },
     76  { EFI_ACPI_6_5_WINDOWS_SMM_SECURITY_MITIGATION_TABLE_SIGNATURE,                                        ParseAcpiWsmt },
    7577  { EFI_ACPI_6_2_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE,                                            ParseAcpiXsdt }
    7678};
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf

    r99404 r105670  
    3939  Parsers/Gtdt/GtdtParser.c
    4040  Parsers/Hmat/HmatParser.c
     41  Parsers/Hpet/HpetParser.c
    4142  Parsers/Iort/IortParser.c
    4243  Parsers/Madt/MadtParser.c
     
    5253  Parsers/Srat/SratParser.c
    5354  Parsers/Ssdt/SsdtParser.c
     55  Parsers/Wsmt/WsmtParser.c
    5456  Parsers/Xsdt/XsdtParser.c
    5557  UefiShellAcpiViewCommandLib.c
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c

    r99404 r105670  
    8080  @param[in]      Index     The boot or driver option index update.
    8181  @param[in]      DataSize  The size in bytes of Data.
    82   @param[in]      Data      The buffer for the optioanl data.
     82  @param[in]      Data      The buffer for the optional data.
    8383  @param[in]      Target    The target of the operation.
    8484
    85   @retval EFI_SUCCESS       The data was sucessfully updated.
     85  @retval EFI_SUCCESS       The data was successfully updated.
    8686  @retval other             A error occurred.
    8787**/
     
    173173  @param[in]      BootIndex   The boot option index to CRC.
    174174
    175   @retval EFI_SUCCESS           The CRC was sucessfully returned.
     175  @retval EFI_SUCCESS           The CRC was successfully returned.
    176176  @retval other                 A error occurred.
    177177**/
     
    227227
    228228  @param[in]      TheHandle     Driver handle.
    229   @param[in, out] FilePath      On a sucessful return the device path to the handle.
    230 
    231   @retval EFI_SUCCESS           The device path was sucessfully returned.
     229  @param[in, out] FilePath      On a successful return the device path to the handle.
     230
     231  @retval EFI_SUCCESS           The device path was successfully returned.
    232232  @retval other                 A error from gBS->HandleProtocol.
    233233
     
    285285
    286286/**
    287   Functino to get Device Path by a handle.
     287  Function to get Device Path by a handle.
    288288
    289289  @param[in]        TheHandle   Use it to get DevicePath.
    290290  @param[in]        Target      Boot option target.
    291   @param[in, out]   DevicePath  On a sucessful return the device path to the handle.
     291  @param[in, out]   DevicePath  On a successful return the device path to the handle.
    292292
    293293  @retval   SHELL_INVALID_PARAMETER The handle was NULL.
     
    871871
    872872/**
    873   Funciton to remove an item.
     873  Function to remove an item.
    874874
    875875  @param[in] Target         The target item to move.
     
    935935
    936936/**
    937   Funciton to move a item to another location.
     937  Function to move a item to another location.
    938938
    939939  @param[in] Target         The target item to move.
     
    19221922  @param[in] Name           the profile name to use
    19231923
    1924   @retval EFI_SUCCESS        the shell command handlers were installed sucessfully
     1924  @retval EFI_SUCCESS        the shell command handlers were installed successfully
    19251925  @retval EFI_UNSUPPORTED    the shell level required was not found.
    19261926**/
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c

    r101291 r105670  
    156156  @param SystemTable    the EFI System Table pointer
    157157
    158   @retval EFI_SUCCESS   the initialization was complete sucessfully
     158  @retval EFI_SUCCESS   the initialization was complete successfully
    159159**/
    160160RETURN_STATUS
     
    12871287  @param[in] Path               TRUE to update path, FALSE to skip this step (should only be TRUE during initialization).
    12881288
    1289   @retval EFI_SUCCESS           The addition was sucessful.
     1289  @retval EFI_SUCCESS           The addition was successful.
    12901290  @retval EFI_OUT_OF_RESOURCES  A memory allocation failed.
    12911291  @retval EFI_INVALID_PARAMETER A parameter was invalid.
     
    13751375  Also sets up the default path environment variable if Type is FileSystem.
    13761376
    1377   @retval EFI_SUCCESS           All map names were created sucessfully.
     1377  @retval EFI_SUCCESS           All map names were created successfully.
    13781378  @retval EFI_NOT_FOUND         No protocols were found in the system.
    13791379  @return                       Error returned from gBS->LocateHandle().
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellDebug1CommandsLib/Compress.c

    r99404 r105670  
    13181318                                 return the number of bytes placed in DstBuffer.
    13191319
    1320   @retval EFI_SUCCESS           The compression was sucessful.
     1320  @retval EFI_SUCCESS           The compression was successful.
    13211321  @retval EFI_BUFFER_TOO_SMALL  The buffer was too small.  DstSize is required.
    13221322**/
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellDebug1CommandsLib/Compress.h

    r99404 r105670  
    1919                                 return the number of bytes placed in DstBuffer.
    2020
    21   @retval EFI_SUCCESS           The compression was sucessful.
     21  @retval EFI_SUCCESS           The compression was successful.
    2222  @retval EFI_BUFFER_TOO_SMALL  The buffer was too small.  DstSize is required.
    2323**/
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c

    r101291 r105670  
    22  Module for clarifying the content of the smbios structure element information.
    33
    4   Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>
     4  Copyright (c) 2005 - 2024, Intel Corporation. All rights reserved.<BR>
    55  Copyright (c) 1985 - 2022, American Megatrends International LLC.<BR>
    66  (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>
     
    521521      }
    522522
     523      if (AE_SMBIOS_VERSION (0x3, 0x6) && (Struct->Hdr->Length > 0x2E)) {
     524        ShellPrintEx (-1, -1, L"Thread Enabled: %u\n", Struct->Type4->ThreadEnabled);
     525      }
     526
    523527      break;
    524528
     
    26112615      break;
    26122616
     2617    case 0x258:
     2618      Print (L"LoongArch\n");
     2619      break;
     2620
     2621    case 0x259:
     2622      Print (L"Loongson1\n");
     2623      break;
     2624
     2625    case 0x25A:
     2626      Print (L"Loongson2\n");
     2627      break;
     2628
     2629    case 0x25B:
     2630      Print (L"Loongson3\n");
     2631      break;
     2632
     2633    case 0x25C:
     2634      Print (L"Loongson2K\n");
     2635      break;
     2636
     2637    case 0x25D:
     2638      Print (L"Loongson3A\n");
     2639      break;
     2640
     2641    case 0x25E:
     2642      Print (L"Loongson3B\n");
     2643      break;
     2644
     2645    case 0x25F:
     2646      Print (L"Loongson3C\n");
     2647      break;
     2648
     2649    case 0x260:
     2650      Print (L"Loongson3D\n");
     2651      break;
     2652
     2653    case 0x261:
     2654      Print (L"Loongson3E\n");
     2655      break;
     2656
     2657    case 0x262:
     2658      Print (L"DualCoreLoongson2K\n");
     2659      break;
     2660
     2661    case 0x26C:
     2662      Print (L"QuadCoreLoongson3A\n");
     2663      break;
     2664
     2665    case 0x26D:
     2666      Print (L"MultiCoreLoongson3A\n");
     2667      break;
     2668
     2669    case 0x26E:
     2670      Print (L"QuadCoreLoongson3B\n");
     2671      break;
     2672
     2673    case 0x26F:
     2674      Print (L"MultiCoreLoongson3B\n");
     2675      break;
     2676
     2677    case 0x270:
     2678      Print (L"MultiCoreLoongson3C\n");
     2679      break;
     2680
     2681    case 0x271:
     2682      Print (L"MultiCoreLoongson3D\n");
     2683      break;
     2684
     2685    case 0x300:
     2686      Print (L"IntelCore3\n");
     2687      break;
     2688
     2689    case 0x301:
     2690      Print (L"IntelCore5\n");
     2691      break;
     2692
     2693    case 0x302:
     2694      Print (L"IntelCore7\n");
     2695      break;
     2696
     2697    case 0x303:
     2698      Print (L"IntelCore9\n");
     2699      break;
     2700
     2701    case 0x304:
     2702      Print (L"IntelCoreUltra3\n");
     2703      break;
     2704
     2705    case 0x305:
     2706      Print (L"IntelCoreUltra5\n");
     2707      break;
     2708
     2709    case 0x306:
     2710      Print (L"IntelCoreUltra7\n");
     2711      break;
     2712
     2713    case 0x307:
     2714      Print (L"IntelCoreUltra9\n");
     2715      break;
     2716
    26132717    default:
    26142718      ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_PRINTINFO_UNDEFINED_PROC_FAMILY), gShellDebug1HiiHandle);
     
    31063210
    31073211    default:
    3108       if (((SlotType >= 0x0E) && (SlotType <= 0x12)) || ((SlotType >= 0xA6) && (SlotType <= 0xB6))) {
     3212      if (((SlotType >= 0x0E) && (SlotType <= 0x12)) || ((SlotType >= 0xA6) && (SlotType <= 0xC4))) {
    31093213        ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_PRINTINFO_VALUE_PRESENT), gShellDebug1HiiHandle, SlotId);
    31103214      } else {
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c

    r101291 r105670  
    33  And give a interface of query a string out of a table.
    44
    5   Copyright (c) 2005 - 2021, Intel Corporation. All rights reserved.<BR>
     5  Copyright (c) 2005 - 2024, Intel Corporation. All rights reserved.<BR>
    66  (C) Copyright 2016-2019 Hewlett Packard Enterprise Development LP<BR>
    77  Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
     
    639639    0x48,
    640640    L"Socket BGA5773"
     641  },
     642  {
     643    0x49,
     644    L"Socket AM5"
     645  },
     646  {
     647    0x4A,
     648    L"Socket SP5"
     649  },
     650  {
     651    0x4B,
     652    L"Socket SP6"
     653  },
     654  {
     655    0x4C,
     656    L"Socket BGA883"
     657  },
     658  {
     659    0x4D,
     660    L"Socket BGA1190"
     661  },
     662  {
     663    0x4E,
     664    L"Socket BGA4129"
     665  },
     666  {
     667    0x4F,
     668    L"Socket LGA4710"
     669  },
     670  {
     671    0x50,
     672    L"Socket LGA7529"
     673  },
     674  {
     675    0x51,
     676    L"Socket BGA1964"
     677  },
     678  {
     679    0x52,
     680    L"Socket BGA1792"
     681  },
     682  {
     683    0x53,
     684    L"Socket BGA2049"
     685  },
     686  {
     687    0x54,
     688    L"Socket BGA2551"
     689  },
     690  {
     691    0x55,
     692    L"Socket LGA1851"
     693  },
     694  {
     695    0x56,
     696    L"Socket BGA2114"
     697  },
     698  {
     699    0x57,
     700    L"Socket BGA2833"
    641701  }
    642702};
     
    36213681    8,
    36223682    L" 128-bit RISC-V (RV128) "
     3683  },
     3684  {
     3685    9,
     3686    L" 32-bit LoongArch (LoongArch32) "
     3687  },
     3688  {
     3689    10,
     3690    L" 64-bit LoongArch (LoongArch64) "
    36233691  }
    36243692};
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.c

    r99404 r105670  
    3434  @param SystemTable    the EFI System Table pointer
    3535
    36   @retval EFI_SUCCESS        the shell command handlers were installed sucessfully
     36  @retval EFI_SUCCESS        the shell command handlers were installed successfully
    3737  @retval EFI_UNSUPPORTED    the shell level required was not found.
    3838**/
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.c

    r99404 r105670  
    3333  @param SystemTable    the EFI System Table pointer
    3434
    35   @retval EFI_SUCCESS        the shell command handlers were installed sucessfully
     35  @retval EFI_SUCCESS        the shell command handlers were installed successfully
    3636  @retval EFI_UNSUPPORTED    the shell level required was not found.
    3737**/
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.c

    r99404 r105670  
    1717  @param SystemTable    the EFI System Table pointer
    1818
    19   @retval EFI_SUCCESS        the shell command handlers were installed sucessfully
     19  @retval EFI_SUCCESS        the shell command handlers were installed successfully
    2020  @retval EFI_UNSUPPORTED    the shell level required was not found.
    2121**/
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.c

    r99404 r105670  
    3535  @param SystemTable    the EFI System Table pointer
    3636
    37   @retval EFI_SUCCESS        the shell command handlers were installed sucessfully
     37  @retval EFI_SUCCESS        the shell command handlers were installed successfully
    3838  @retval EFI_UNSUPPORTED    the shell level required was not found.
    3939**/
     
    244244                               location.
    245245  @param[in] FindOnly          TRUE to not change the ScriptFile.
    246   @param[in] WrapAroundScript  TRUE to wrap end-to-begining or vise versa in
     246  @param[in] WrapAroundScript  TRUE to wrap end-to-beginning or vise versa in
    247247                               searching.
    248248**/
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.h

    r99404 r105670  
    184184                               location.
    185185  @param[in] FindOnly          TRUE to not change the ScriptFile.
    186   @param[in] WrapAroundScript  TRUE to wrap end-to-begining or vise versa in
     186  @param[in] WrapAroundScript  TRUE to wrap end-to-beginning or vise versa in
    187187                               searching.
    188188**/
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/Cd.c

    r99404 r105670  
    1515  Function will replace drive identifier with CWD.
    1616
    17   If FullPath begining with ':' is invalid path, then ASSERT.
    18   If FullPath not include dirve identifier , then do nothing.
     17  If FullPath beginning with ':' is invalid path, then ASSERT.
     18  If FullPath not include drive identifier , then do nothing.
    1919  If FullPath likes "fs0:\xx" or "fs0:/xx" , then do nothing.
    2020  If FullPath likes "fs0:xxx" or "fs0:", the drive replaced by CWD.
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c

    r99404 r105670  
    428428                            unfiltered.
    429429
    430   @retval SHELL_SUCCESS     the printing was sucessful.
     430  @retval SHELL_SUCCESS     the printing was successful.
    431431**/
    432432SHELL_STATUS
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/Map.c

    r99404 r105670  
    13551355                                TRUE
    13561356                                );
    1357               } // we were sucessful so do an output
     1357              } // we were successful so do an output
    13581358            }
    13591359          } // got a valid map target
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c

    r99404 r105670  
    217217  have 2 possible destination).
    218218
    219   if the result is sucessful the caller must free *DestPathPointer.
     219  if the result is successful the caller must free *DestPathPointer.
    220220
    221221  @param[in] DestParameter               The original path to the destination.
     
    228228  @retval SHELL_INVALID_PARAMETER  The DestParameter could be resolved to more than 1 location.
    229229  @retval SHELL_INVALID_PARAMETER  Cwd is required and is NULL.
    230   @retval SHELL_SUCCESS            The operation was sucessful.
     230  @retval SHELL_SUCCESS            The operation was successful.
    231231**/
    232232SHELL_STATUS
     
    851851            //
    852852            // ValidateAndMoveFiles will report errors to the screen itself
    853             // Only change ShellStatus if it's sucessful
     853            // Only change ShellStatus if it's successful
    854854            //
    855855            if (ShellStatus == SHELL_SUCCESS) {
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/Reset.c

    r99404 r105670  
    8080                          &OsIndications
    8181                          );
    82         if (!EFI_ERROR (Status)) {
    83           if ((OsIndications & EFI_OS_INDICATIONS_BOOT_TO_FW_UI) != 0) {
    84             DataSize = sizeof (OsIndications);
    85             Status   = gRT->GetVariable (
    86                               EFI_OS_INDICATIONS_VARIABLE_NAME,
    87                               &gEfiGlobalVariableGuid,
    88                               &Attr,
    89                               &DataSize,
    90                               &OsIndications
    91                               );
    92             if (!EFI_ERROR (Status)) {
    93               OsIndications |= EFI_OS_INDICATIONS_BOOT_TO_FW_UI;
    94             } else {
    95               OsIndications = EFI_OS_INDICATIONS_BOOT_TO_FW_UI;
    96             }
    9782
    98             Status = gRT->SetVariable (
     83        if (EFI_ERROR (Status)) {
     84          ShellStatus = SHELL_UNSUPPORTED;
     85          goto Error;
     86        }
     87
     88        if ((OsIndications & EFI_OS_INDICATIONS_BOOT_TO_FW_UI) != 0) {
     89          DataSize = sizeof (OsIndications);
     90          Status   = gRT->GetVariable (
    9991                            EFI_OS_INDICATIONS_VARIABLE_NAME,
    10092                            &gEfiGlobalVariableGuid,
    101                             EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,
    102                             sizeof (OsIndications),
     93                            &Attr,
     94                            &DataSize,
    10395                            &OsIndications
    10496                            );
     97
     98          if (EFI_ERROR (Status)) {
     99            OsIndications = EFI_OS_INDICATIONS_BOOT_TO_FW_UI;
     100          } else {
     101            OsIndications |= EFI_OS_INDICATIONS_BOOT_TO_FW_UI;
    105102          }
     103
     104          Status = gRT->SetVariable (
     105                          EFI_OS_INDICATIONS_VARIABLE_NAME,
     106                          &gEfiGlobalVariableGuid,
     107                          EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,
     108                          sizeof (OsIndications),
     109                          &OsIndications
     110                          );
    106111        }
    107112
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/Set.c

    r99404 r105670  
    1515  If you spawn a pre 2.0 shell from the Shell 2.0 the environment variable may not carry through.
    1616
    17   @retval STATUS_SUCCESS  the printout was sucessful
     17  @retval STATUS_SUCCESS  the printout was successful
    1818  @return any return code from GetNextVariableName except EFI_NOT_FOUND
    1919**/
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.c

    r99404 r105670  
    5454  @param SystemTable    the EFI System Table pointer
    5555
    56   @retval EFI_SUCCESS        the shell command handlers were installed sucessfully
     56  @retval EFI_SUCCESS        the shell command handlers were installed successfully
    5757  @retval EFI_UNSUPPORTED    the shell level required was not found.
    5858**/
     
    149149
    150150/**
    151   returns a fully qualified directory (contains a map drive at the begining)
     151  returns a fully qualified directory (contains a map drive at the beginning)
    152152  path from a unknown directory path.
    153153
    154   If Path is already fully qualified this will return a duplicat otherwise this
     154  If Path is already fully qualified this will return a duplicate otherwise this
    155155  will use get the current directory and use that to build the fully qualified
    156156  version.
     
    162162  @retval NULL            A memory allocation failed
    163163  @retval NULL            A fully qualified path could not be discovered.
    164   @retval other           An allocated pointer to a fuly qualified path.
     164  @retval other           An allocated pointer to a fully qualified path.
    165165**/
    166166CHAR16 *
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h

    r99404 r105670  
    242242
    243243/**
    244   returns a fully qualified directory (contains a map drive at the begining)
     244  returns a fully qualified directory (contains a map drive at the beginning)
    245245  path from a unknown directory path.
    246246
    247   If Path is already fully qualified this will return a duplicat otherwise this
     247  If Path is already fully qualified this will return a duplicate otherwise this
    248248  will use get the current directory and use that to build the fully qualified
    249249  version.
     
    255255  @retval NULL            A memory allocation failed
    256256  @retval NULL            a fully qualified path could not be discovered.
    257   @retval other           pointer to a fuly qualified path.
     257  @retval other           pointer to a fully qualified path.
    258258**/
    259259CHAR16 *
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c

    r99404 r105670  
    1919  @param[in] Name           New name to set to the volume label.
    2020
    21   @retval SHELL_SUCCESS     The operation was sucessful.
     21  @retval SHELL_SUCCESS     The operation was successful.
    2222**/
    2323SHELL_STATUS
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel3CommandsLib/Alias.c

    r99404 r105670  
    1818                                If this parameter is NULL, then all
    1919                                aliases will be returned in ReturnedData.
    20   @retval     SHELL_SUCCESS     the printout was sucessful
     20  @retval     SHELL_SUCCESS     the printout was successful
    2121**/
    2222SHELL_STATUS
     
    4848  Print out each alias registered with the Shell.
    4949
    50   @retval STATUS_SUCCESS  the printout was sucessful
     50  @retval STATUS_SUCCESS  the printout was successful
    5151  @return any return code from GetNextVariableName except EFI_NOT_FOUND
    5252**/
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel3CommandsLib/Touch.c

    r99404 r105670  
    233233
    234234        //
    235         // make sure we completed the param parsing sucessfully...
    236         // Also make sure that any previous action was sucessful
     235        // make sure we completed the param parsing successfully...
     236        // Also make sure that any previous action was successful
    237237        //
    238238        if (ShellStatus == SHELL_SUCCESS) {
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel3CommandsLib/Type.c

    r99404 r105670  
    252252
    253253        //
    254         // make sure we completed the param parsing sucessfully...
    255         // Also make sure that any previous action was sucessful
     254        // make sure we completed the param parsing successfully...
     255        // Also make sure that any previous action was successful
    256256        //
    257257        if (ShellStatus == SHELL_SUCCESS) {
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.c

    r99404 r105670  
    3434  @param SystemTable    the EFI System Table pointer
    3535
    36   @retval EFI_SUCCESS        the shell command handlers were installed sucessfully
     36  @retval EFI_SUCCESS        the shell command handlers were installed successfully
    3737  @retval EFI_UNSUPPORTED    the shell level required was not found.
    3838**/
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLib/UefiShellLib.c

    r99404 r105670  
    55  Copyright 2016-2018 Dell Technologies.<BR>
    66  Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
     7  Copyright (C) 2023, Apple Inc. All rights reserved.<BR>
     8
    79  SPDX-License-Identifier: BSD-2-Clause-Patent
    8 
    910**/
    1011
     
    417418  @param SystemTable    the EFI System Table pointer
    418419
    419   @retval EFI_SUCCESS   the initialization was complete sucessfully
     420  @retval EFI_SUCCESS   the initialization was complete successfully
    420421  @return others        an error ocurred during initialization
    421422**/
     
    516517/**
    517518  This function causes the shell library to initialize itself.  If the shell library
    518   is already initialized it will de-initialize all the current protocol poitners and
     519  is already initialized it will de-initialize all the current protocol pointers and
    519520  re-populate them again.
    520521
     
    524525  This function is intended for internal access for shell commands only.
    525526
    526   @retval EFI_SUCCESS   the initialization was complete sucessfully
     527  @retval EFI_SUCCESS   the initialization was complete successfully
    527528
    528529**/
     
    962963@param FileHandle               the file handle to close.
    963964
    964 @retval EFI_SUCCESS             the file handle was closed sucessfully.
     965@retval EFI_SUCCESS             the file handle was closed successfully.
    965966**/
    966967EFI_STATUS
     
    982983  @param FileHandle             the file handle to delete
    983984
    984   @retval EFI_SUCCESS           the file was closed sucessfully
     985  @retval EFI_SUCCESS           the file was closed successfully
    985986  @retval EFI_WARN_DELETE_FAILURE the handle was closed, but the file was not
    986987                                deleted
     
    10081009
    10091010  @param FileHandle             The file handle on which the position is being set
    1010   @param Position               Byte position from begining of file
    1011 
    1012   @retval EFI_SUCCESS           Operation completed sucessfully.
     1011  @param Position               Byte position from beginning of file
     1012
     1013  @retval EFI_SUCCESS           Operation completed successfully.
    10131014  @retval EFI_UNSUPPORTED       the seek request for non-zero is not valid on
    10141015                                directories.
     
    10341035
    10351036  @param FileHandle             The open file handle on which to get the position.
    1036   @param Position               Byte position from begining of file.
    1037 
    1038   @retval EFI_SUCCESS           the operation completed sucessfully.
     1037  @param Position               Byte position from beginning of file.
     1038
     1039  @retval EFI_SUCCESS           the operation completed successfully.
    10391040  @retval INVALID_PARAMETER     One of the parameters has an invalid value.
    10401041  @retval EFI_UNSUPPORTED       the request is not valid on directories.
     
    11521153  @param Size                   pointer to size
    11531154
    1154   @retval EFI_SUCCESS           operation was completed sucessfully
     1155  @retval EFI_SUCCESS           operation was completed successfully
    11551156  @retval EFI_DEVICE_ERROR      cannot access the file
    11561157**/
     
    12541255  @param Volatile               Indicates whether the variable is non-volatile (FALSE) or volatile (TRUE).
    12551256
    1256   @retval EFI_SUCCESS           the operation was completed sucessfully
     1257  @retval EFI_SUCCESS           the operation was completed successfully
    12571258  @retval EFI_UNSUPPORTED       This operation is not allowed in pre UEFI 2.0 Shell environments
    12581259**/
     
    13021303  @param[out] Status              The status of the run command line.
    13031304
    1304   @retval EFI_SUCCESS             The operation completed sucessfully.  Status
     1305  @retval EFI_SUCCESS             The operation completed successfully.  Status
    13051306                                  contains the status code returned.
    13061307  @retval EFI_INVALID_PARAMETER   A parameter contains an invalid value.
     
    15761577
    15771578    //
    1578     // make sure all the memory allocations were sucessful
     1579    // make sure all the memory allocations were successful
    15791580    //
    15801581    if ((NULL == NewInfo->FullName) || (NewInfo->FileName == NULL) || (NewInfo->Info == NULL)) {
     
    16211622  @param ListHead               head of linked list of results
    16221623
    1623   @retval EFI_SUCCESS           the operation was sucessful and the list head
     1624  @retval EFI_SUCCESS           the operation was successful and the list head
    16241625                                contains the list of opened files
    16251626  @return != EFI_SUCCESS        the operation failed
     
    17481749  @param ListHead               the pointer to free.
    17491750
    1750   @retval EFI_SUCCESS           the operation was sucessful.
     1751  @retval EFI_SUCCESS           the operation was successful.
    17511752**/
    17521753EFI_STATUS
     
    21312132  @param[in] AlwaysAllowNumbers TRUE to allow numbers always, FALSE otherwise.
    21322133
    2133   @retval EFI_SUCCESS           The operation completed sucessfully.
     2134  @retval EFI_SUCCESS           The operation completed successfully.
    21342135  @retval EFI_OUT_OF_RESOURCES  A memory allocation failed
    21352136  @retval EFI_INVALID_PARAMETER A parameter was invalid
     
    23712372  @param[in] AlwaysAllowNumbers Will never fail for number based flags.
    23722373
    2373   @retval EFI_SUCCESS           The operation completed sucessfully.
     2374  @retval EFI_SUCCESS           The operation completed successfully.
    23742375  @retval EFI_OUT_OF_RESOURCES  A memory allocation failed.
    23752376  @retval EFI_INVALID_PARAMETER A parameter was invalid.
     
    28752876  @param[in] String       The string to print out.
    28762877
    2877   @retval EFI_SUCCESS     The operation was sucessful.
     2878  @retval EFI_SUCCESS     The operation was successful.
    28782879  @retval !EFI_SUCCESS    The operation failed.
    28792880**/
     
    29532954  CHAR16      *mPostReplaceFormat2;
    29542955
    2955   mPostReplaceFormat  = AllocateZeroPool (PcdGet16 (PcdShellPrintBufferSize));
    2956   mPostReplaceFormat2 = AllocateZeroPool (PcdGet16 (PcdShellPrintBufferSize));
     2956  mPostReplaceFormat  = AllocateZeroPool (PcdGet32 (PcdShellPrintBufferSize));
     2957  mPostReplaceFormat2 = AllocateZeroPool (PcdGet32 (PcdShellPrintBufferSize));
    29572958
    29582959  if ((mPostReplaceFormat == NULL) || (mPostReplaceFormat2 == NULL)) {
     
    29682969  // Back and forth each time fixing up 1 of our flags...
    29692970  //
    2970   Status = ShellCopySearchAndReplace (Format, mPostReplaceFormat, PcdGet16 (PcdShellPrintBufferSize), L"%N", L"%%N", FALSE, FALSE);
     2971  Status = ShellCopySearchAndReplace (Format, mPostReplaceFormat, PcdGet32 (PcdShellPrintBufferSize), L"%N", L"%%N", FALSE, FALSE);
    29712972  ASSERT_EFI_ERROR (Status);
    2972   Status = ShellCopySearchAndReplace (mPostReplaceFormat, mPostReplaceFormat2, PcdGet16 (PcdShellPrintBufferSize), L"%E", L"%%E", FALSE, FALSE);
     2973  Status = ShellCopySearchAndReplace (mPostReplaceFormat, mPostReplaceFormat2, PcdGet32 (PcdShellPrintBufferSize), L"%E", L"%%E", FALSE, FALSE);
    29732974  ASSERT_EFI_ERROR (Status);
    2974   Status = ShellCopySearchAndReplace (mPostReplaceFormat2, mPostReplaceFormat, PcdGet16 (PcdShellPrintBufferSize), L"%H", L"%%H", FALSE, FALSE);
     2975  Status = ShellCopySearchAndReplace (mPostReplaceFormat2, mPostReplaceFormat, PcdGet32 (PcdShellPrintBufferSize), L"%H", L"%%H", FALSE, FALSE);
    29752976  ASSERT_EFI_ERROR (Status);
    2976   Status = ShellCopySearchAndReplace (mPostReplaceFormat, mPostReplaceFormat2, PcdGet16 (PcdShellPrintBufferSize), L"%B", L"%%B", FALSE, FALSE);
     2977  Status = ShellCopySearchAndReplace (mPostReplaceFormat, mPostReplaceFormat2, PcdGet32 (PcdShellPrintBufferSize), L"%B", L"%%B", FALSE, FALSE);
    29772978  ASSERT_EFI_ERROR (Status);
    2978   Status = ShellCopySearchAndReplace (mPostReplaceFormat2, mPostReplaceFormat, PcdGet16 (PcdShellPrintBufferSize), L"%V", L"%%V", FALSE, FALSE);
     2979  Status = ShellCopySearchAndReplace (mPostReplaceFormat2, mPostReplaceFormat, PcdGet32 (PcdShellPrintBufferSize), L"%V", L"%%V", FALSE, FALSE);
    29792980  ASSERT_EFI_ERROR (Status);
    29802981
     
    29822983  // Use the last buffer from replacing to print from...
    29832984  //
    2984   UnicodeVSPrint (mPostReplaceFormat2, PcdGet16 (PcdShellPrintBufferSize), mPostReplaceFormat, Marker);
     2985  UnicodeVSPrint (mPostReplaceFormat2, PcdGet32 (PcdShellPrintBufferSize), mPostReplaceFormat, Marker);
    29852986
    29862987  if ((Col != -1) && (Row != -1)) {
     
    35153516  @param Response                 Pointer to Response which will be populated upon return.
    35163517
    3517   @retval EFI_SUCCESS             The operation was sucessful.
     3518  @retval EFI_SUCCESS             The operation was successful.
    35183519  @retval EFI_UNSUPPORTED         The operation is not supported as requested.
    35193520  @retval EFI_INVALID_PARAMETER   A parameter was invalid.
     
    38013802  @param Response               Pointer to Response which will be populated upon return.
    38023803
    3803   @retval EFI_SUCCESS the operation was sucessful.
     3804  @retval EFI_SUCCESS the operation was successful.
    38043805  @return other       the operation failed.
    38053806
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c

    r99404 r105670  
    512512  Currently, the application retransmits an icmp6 echo request packet
    513513  per second in sendnumber times that is specified by the user.
    514   Because nothing can be done here, all things move to the timer rountine.
     514  Because nothing can be done here, all things move to the timer routine.
    515515
    516516  @param[in]    Event      A EFI_EVENT type event.
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.c

    r99404 r105670  
    3333  @param SystemTable            The EFI System Table pointer.
    3434
    35   @retval EFI_SUCCESS           The shell command handlers were installed sucessfully.
     35  @retval EFI_SUCCESS           The shell command handlers were installed successfully.
    3636  @retval EFI_UNSUPPORTED       The shell level required was not found.
    3737**/
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellNetwork2CommandsLib/Ifconfig6.c

    r99404 r105670  
    383383      ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_IFCONFIG6_INFO_COLON), gShellNetwork2HiiHandle);
    384384
    385       while ((Ip->Addr[Index] == 0) && (Ip->Addr[Index + 1] == 0) && (Index < PREFIXMAXLEN)) {
     385      while ((Index < PREFIXMAXLEN) && (Ip->Addr[Index] == 0) && (Ip->Addr[Index + 1] == 0)) {
    386386        Index = Index + 2;
    387387        if (Index > PREFIXMAXLEN - 2) {
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellNetwork2CommandsLib/Ping6.c

    r99404 r105670  
    358358  Currently, the application retransmits an icmp6 echo request packet
    359359  per second in sendnumber times that is specified by the user.
    360   Because nothing can be done here, all things move to the timer rountine.
     360  Because nothing can be done here, all things move to the timer routine.
    361361
    362362  @param[in]    Event      A EFI_EVENT type event.
  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.c

    r99404 r105670  
    3333  @param SystemTable            The EFI System Table pointer.
    3434
    35   @retval EFI_SUCCESS           The shell command handlers were installed sucessfully.
     35  @retval EFI_SUCCESS           The shell command handlers were installed successfully.
    3636  @retval EFI_UNSUPPORTED       The shell level required was not found.
    3737**/
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette