VirtualBox

Ignore:
Timestamp:
Mar 31, 2025 11:31:09 AM (2 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168237
Message:

Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 edited

Legend:

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

  • trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Library/UefiMemoryLib/SetMemWrapper.c

    r80721 r108794  
    11/** @file
    2   SetMem() and SetMemN() implementation.
     2  SetMem() implementation.
    33
    44  The following BaseMemoryLib instances contain the same copy of this file:
     
    5050  return InternalMemSetMem (Buffer, Length, Value);
    5151}
    52 
    53 /**
    54   Fills a target buffer with a value that is size UINTN, and returns the target buffer.
    55 
    56   This function fills Length bytes of Buffer with the UINTN sized value specified by
    57   Value, and returns Buffer. Value is repeated every sizeof(UINTN) bytes for Length
    58   bytes of Buffer.
    59 
    60   If Length > 0 and Buffer is NULL, then ASSERT().
    61   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
    62   If Buffer is not aligned on a UINTN boundary, then ASSERT().
    63   If Length is not aligned on a UINTN boundary, then ASSERT().
    64 
    65   @param  Buffer  The pointer to the target buffer to fill.
    66   @param  Length  The number of bytes in Buffer to fill.
    67   @param  Value   The value with which to fill Length bytes of Buffer.
    68 
    69   @return Buffer.
    70 
    71 **/
    72 VOID *
    73 EFIAPI
    74 SetMemN (
    75   OUT VOID  *Buffer,
    76   IN UINTN  Length,
    77   IN UINTN  Value
    78   )
    79 {
    80   if (sizeof (UINTN) == sizeof (UINT64)) {
    81     return SetMem64 (Buffer, Length, (UINT64)Value);
    82   } else {
    83     return SetMem32 (Buffer, Length, (UINT32)Value);
    84   }
    85 }
Note: See TracChangeset for help on using the changeset viewer.

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