VirtualBox

Ignore:
Timestamp:
Oct 29, 2015 4:30:44 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
103777
Message:

EFI/Firmware: Merged in the svn:eol-style, svn:mime-type and trailing whitespace cleanup that was done after the initial UDK2014.SP1 import: svn merge /vendor/edk2/UDK2014.SP1 /vendor/edk2/current .

Location:
trunk/src/VBox/Devices/EFI/Firmware
Files:
15 edited

Legend:

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

  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf

    r58459 r58466  
    22#  Instance of Base Memory Library optimized for use in DXE phase.
    33#
    4 #  Base Memory Library that is optimized for use in DXE phase. 
     4#  Base Memory Library that is optimized for use in DXE phase.
    55#  Uses REP, MMX, XMM registers as required for best performance.
    66#
     
    2424  MODULE_TYPE                    = BASE
    2525  VERSION_STRING                 = 1.0
    26   LIBRARY_CLASS                  = BaseMemoryLib 
     26  LIBRARY_CLASS                  = BaseMemoryLib
    2727
    2828
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseMemoryLibOptDxe/CompareMemWrapper.c

    r48674 r58466  
    3232  value returned is the first mismatched byte in SourceBuffer subtracted from the first
    3333  mismatched byte in DestinationBuffer.
    34  
     34
    3535  If Length > 0 and DestinationBuffer is NULL, then ASSERT().
    3636  If Length > 0 and SourceBuffer is NULL, then ASSERT().
     
    4545  @retval Non-zero          The first mismatched byte in SourceBuffer subtracted from the first
    4646                            mismatched byte in DestinationBuffer.
    47                            
     47
    4848**/
    4949INTN
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseMemoryLibOptDxe/CopyMemWrapper.c

    r48674 r58466  
    33
    44  The following BaseMemoryLib instances contain the same copy of this file:
    5  
     5
    66    BaseMemoryLib
    77    BaseMemoryLibMmx
     
    3232  DestinationBuffer.  The implementation must be reentrant, and it must handle the case
    3333  where SourceBuffer overlaps DestinationBuffer.
    34  
     34
    3535  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT().
    3636  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseMemoryLibOptDxe/MemLibGuid.c

    r48674 r58466  
    33
    44  The following BaseMemoryLib instances contain the same copy of this file:
    5  
     5
    66    BaseMemoryLib
    77    BaseMemoryLibMmx
     
    3131  This function copies the contents of the 128-bit GUID specified by SourceGuid to
    3232  DestinationGuid, and returns DestinationGuid.
    33  
     33
    3434  If DestinationGuid is NULL, then ASSERT().
    3535  If SourceGuid is NULL, then ASSERT().
     
    6464  This function compares Guid1 to Guid2.  If the GUIDs are identical then TRUE is returned.
    6565  If there are any bit differences in the two GUIDs, then FALSE is returned.
    66  
     66
    6767  If Guid1 is NULL, then ASSERT().
    6868  If Guid2 is NULL, then ASSERT().
     
    104104  GUID in the target buffer is returned.  If no match is found, then NULL is returned.
    105105  If Length is 0, then NULL is returned.
    106  
     106
    107107  If Length > 0 and Buffer is NULL, then ASSERT().
    108108  If Buffer is not aligned on a 32-bit boundary, then ASSERT().
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseMemoryLibOptDxe/ScanMem16Wrapper.c

    r48674 r58466  
    3434  then a pointer to the matching byte in the target buffer is returned.  If no match is found,
    3535  then NULL is returned.  If Length is 0, then NULL is returned.
    36  
     36
    3737  If Length > 0 and Buffer is NULL, then ASSERT().
    3838  If Buffer is not aligned on a 16-bit boundary, then ASSERT().
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseMemoryLibOptDxe/ScanMem32Wrapper.c

    r48674 r58466  
    3333  then a pointer to the matching byte in the target buffer is returned.  If no match is found,
    3434  then NULL is returned.  If Length is 0, then NULL is returned.
    35  
     35
    3636  If Length > 0 and Buffer is NULL, then ASSERT().
    3737  If Buffer is not aligned on a 32-bit boundary, then ASSERT().
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseMemoryLibOptDxe/ScanMem64Wrapper.c

    r48674 r58466  
    3434  then a pointer to the matching byte in the target buffer is returned.  If no match is found,
    3535  then NULL is returned.  If Length is 0, then NULL is returned.
    36  
     36
    3737  If Length > 0 and Buffer is NULL, then ASSERT().
    3838  If Buffer is not aligned on a 64-bit boundary, then ASSERT().
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseMemoryLibOptDxe/ScanMem8Wrapper.c

    r48674 r58466  
    3434  then a pointer to the matching byte in the target buffer is returned.  If no match is found,
    3535  then NULL is returned.  If Length is 0, then NULL is returned.
    36  
     36
    3737  If Length > 0 and Buffer is NULL, then ASSERT().
    3838  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
     
    5858  ASSERT (Buffer != NULL);
    5959  ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
    60  
     60
    6161  return (VOID*)InternalMemScanMem8 (Buffer, Length, Value);
    6262}
    6363
    6464/**
    65   Scans a target buffer for a UINTN sized value, and returns a pointer to the matching 
     65  Scans a target buffer for a UINTN sized value, and returns a pointer to the matching
    6666  UINTN sized value in the target buffer.
    6767
     
    7070  then a pointer to the matching byte in the target buffer is returned.  If no match is found,
    7171  then NULL is returned.  If Length is 0, then NULL is returned.
    72  
     72
    7373  If Length > 0 and Buffer is NULL, then ASSERT().
    7474  If Buffer is not aligned on a UINTN boundary, then ASSERT().
     
    7878  @param  Buffer      The pointer to the target buffer to scan.
    7979  @param  Length      The number of bytes in Buffer to scan.
    80   @param  Value       
     80  @param  Value
    8181The value to search for in the target buffer.
    8282
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseMemoryLibOptDxe/SetMemWrapper.c

    r48674 r58466  
    3030
    3131  This function fills Length bytes of Buffer with Value, and returns Buffer.
    32  
     32
    3333  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
    3434
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseMemoryLibOptDxe/X64/CompareMem.S

    r48674 r58466  
    4242#   IN      UINTN                     Length
    4343#   );
    44 #------------------------------------------------------------------------------ 
     44#------------------------------------------------------------------------------
    4545ASM_GLOBAL ASM_PFX(InternalMemCompareMem)
    4646ASM_PFX(InternalMemCompareMem):
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseMemoryLibOptDxe/X64/CopyMem.S

    r48674 r58466  
    4040    movq    %rdx, %rsi                  # rsi <- Source
    4141    movq    %rcx, %rdi                  # rdi <- Destination
    42     leaq    -1(%rsi,%r8,), %r9          # r9 <- Last byte of Source     
     42    leaq    -1(%rsi,%r8,), %r9          # r9 <- Last byte of Source
    4343    cmpq    %rdi, %rsi
    4444    movq    %rdi, %rax                  # rax <- Destination as return value
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.S

    r48674 r58466  
    4848    shrq    $3, %rcx    # rcx = rcx / 8
    4949    cld
    50     rep     stosq 
     50    rep     stosq
    5151    movq    %rdx, %rcx  # rcx = rdx
    5252    andq    $7, %rcx    # rcx = rcx & 7
    53     rep     stosb 
     53    rep     stosb
    5454    popq    %rax        # rax = Buffer
    5555    popq    %rbx
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.asm

    r48674 r58466  
    4848    shr     rcx, 3    ; rcx = rcx / 8
    4949    cld
    50     rep     stosq 
     50    rep     stosq
    5151    mov     rcx, rdx  ; rcx = rdx
    5252    and     rcx, 7    ; rcx = rcx & 7
    53     rep     stosb 
     53    rep     stosb
    5454    pop     rax       ; rax = Buffer
    5555    ret
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseMemoryLibOptDxe/ZeroMemWrapper.c

    r48674 r58466  
    1212    PeiMemoryLib
    1313    UefiMemoryLib
    14    
     14
    1515  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
    1616  This program and the accompanying materials
     
    3030
    3131  This function fills Length bytes of Buffer with zeros, and returns Buffer.
    32  
     32
    3333  If Length > 0 and Buffer is NULL, then ASSERT().
    3434  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
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