VirtualBox

Ignore:
Timestamp:
Aug 14, 2024 1:16:30 PM (4 months ago)
Author:
vboxsync
Message:

Devices/EFI/FirmwareNew: Merge edk2-stable-202405 and make it build on aarch64, 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/MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c

    r99404 r105670  
    227227  @param  Mem            The pointer to host memory.
    228228  @param  Size           The size of the memory region.
     229  @param  Alignment      Alignment the size to USBHC_MEM_UNIT bytes.
    229230
    230231  @return                The pci memory address
     
    235236  IN USBHC_MEM_POOL  *Pool,
    236237  IN VOID            *Mem,
    237   IN UINTN           Size
     238  IN UINTN           Size,
     239  IN BOOLEAN         Alignment
    238240  )
    239241{
     
    244246  UINTN                 Offset;
    245247
    246   Head      = Pool->Head;
    247   AllocSize = USBHC_MEM_ROUND (Size);
     248  Head = Pool->Head;
     249  if (Alignment) {
     250    AllocSize = USBHC_MEM_ROUND (Size);
     251  } else {
     252    AllocSize = Size;
     253  }
    248254
    249255  if (Mem == NULL) {
     
    276282  @param  Mem            The pointer to pci memory.
    277283  @param  Size           The size of the memory region.
     284  @param  Alignment      Alignment the size to USBHC_MEM_UNIT bytes.
    278285
    279286  @return                The host memory address
     
    284291  IN USBHC_MEM_POOL  *Pool,
    285292  IN VOID            *Mem,
    286   IN UINTN           Size
     293  IN UINTN           Size,
     294  IN BOOLEAN         Alignment
    287295  )
    288296{
     
    293301  UINTN                 Offset;
    294302
    295   Head      = Pool->Head;
    296   AllocSize = USBHC_MEM_ROUND (Size);
     303  Head = Pool->Head;
     304  if (Alignment) {
     305    AllocSize = USBHC_MEM_ROUND (Size);
     306  } else {
     307    AllocSize = Size;
     308  }
    297309
    298310  if (Mem == NULL) {
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