VirtualBox

Ignore:
Timestamp:
Oct 29, 2015 4:30:44 AM (9 years ago)
Author:
vboxsync
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:
9 edited

Legend:

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

  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseSynchronizationLib/Arm/Synchronization.c

    r48674 r58466  
    4646  Performs an atomic compare exchange operation on a 64-bit unsigned integer.
    4747
    48   Performs an atomic compare exchange operation on the 64-bit unsigned integer specified 
    49   by Value.  If Value is equal to CompareValue, then Value is set to ExchangeValue and 
    50   CompareValue is returned.  If Value is not equal to CompareValue, then Value is returned. 
     48  Performs an atomic compare exchange operation on the 64-bit unsigned integer specified
     49  by Value.  If Value is equal to CompareValue, then Value is set to ExchangeValue and
     50  CompareValue is returned.  If Value is not equal to CompareValue, then Value is returned.
    5151  The compare exchange operation must be performed using MP safe mechanisms.
    5252
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf

    r58459 r58466  
    3131
    3232[Sources.IA32]
    33   Ia32/InterlockedCompareExchange64.c | MSFT 
    34   Ia32/InterlockedCompareExchange32.c | MSFT 
    35   Ia32/InterlockedDecrement.c | MSFT 
    36   Ia32/InterlockedIncrement.c | MSFT 
     33  Ia32/InterlockedCompareExchange64.c | MSFT
     34  Ia32/InterlockedCompareExchange32.c | MSFT
     35  Ia32/InterlockedDecrement.c | MSFT
     36  Ia32/InterlockedIncrement.c | MSFT
    3737  SynchronizationMsc.c  | MSFT
    3838
    39   Ia32/InterlockedCompareExchange64.asm | INTEL 
    40   Ia32/InterlockedCompareExchange32.asm | INTEL 
    41   Ia32/InterlockedDecrement.asm | INTEL 
    42   Ia32/InterlockedIncrement.asm | INTEL 
     39  Ia32/InterlockedCompareExchange64.asm | INTEL
     40  Ia32/InterlockedCompareExchange32.asm | INTEL
     41  Ia32/InterlockedDecrement.asm | INTEL
     42  Ia32/InterlockedIncrement.asm | INTEL
    4343  Synchronization.c | INTEL
    4444
     
    4949  X64/InterlockedCompareExchange64.c | MSFT
    5050  X64/InterlockedCompareExchange32.c | MSFT
    51  
     51
    5252  X64/InterlockedCompareExchange64.asm | INTEL
    5353  X64/InterlockedCompareExchange32.asm | INTEL
    54  
    55   X64/InterlockedDecrement.c | MSFT
    56   X64/InterlockedIncrement.c | MSFT
    57   SynchronizationMsc.c | MSFT
    5854
    59   X64/InterlockedDecrement.asm | INTEL
    60   X64/InterlockedIncrement.asm | INTEL
    61   Synchronization.c | INTEL
     55  X64/InterlockedDecrement.c | MSFT
     56  X64/InterlockedIncrement.c | MSFT
     57  SynchronizationMsc.c | MSFT
     58
     59  X64/InterlockedDecrement.asm | INTEL
     60  X64/InterlockedIncrement.asm | INTEL
     61  Synchronization.c | INTEL
    6262
    6363  X64/GccInline.c | GCC
    64   SynchronizationGcc.c  | GCC 
     64  SynchronizationGcc.c  | GCC
    6565
    6666[Sources.IPF]
     
    6969  Ipf/InterlockedCompareExchange32.s
    7070
    71   Synchronization.c     | INTEL 
    72   SynchronizationMsc.c  | MSFT 
    73   SynchronizationGcc.c  | GCC 
     71  Synchronization.c     | INTEL
     72  SynchronizationMsc.c  | MSFT
     73  SynchronizationGcc.c  | GCC
    7474
    7575[Sources.EBC]
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseSynchronizationLib/Ebc/Synchronization.c

    r48674 r58466  
    4747  Performs an atomic compare exchange operation on a 64-bit unsigned integer.
    4848
    49   Performs an atomic compare exchange operation on the 64-bit unsigned integer specified 
    50   by Value.  If Value is equal to CompareValue, then Value is set to ExchangeValue and 
    51   CompareValue is returned.  If Value is not equal to CompareValue, then Value is returned. 
     49  Performs an atomic compare exchange operation on the 64-bit unsigned integer specified
     50  by Value.  If Value is equal to CompareValue, then Value is set to ExchangeValue and
     51  CompareValue is returned.  If Value is not equal to CompareValue, then Value is returned.
    5252  The compare exchange operation must be performed using MP safe mechanisms.
    5353
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseSynchronizationLib/Ia32/GccInline.c

    r48674 r58466  
    11/** @file
    22  GCC inline implementation of BaseSynchronizationLib processor specific functions.
    3  
     3
    44  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
    55  Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
     
    4343    : "=a" (Result),          // %0
    4444      "=m" (*Value)           // %1
    45     : "m"  (*Value)           // %2 
     45    : "m"  (*Value)           // %2
    4646    : "memory",
    4747      "cc"
    4848    );
    49    
    50   return Result;   
     49
     50  return Result;
    5151
    5252}
     
    7373{
    7474   UINT32  Result;
    75  
     75
    7676  __asm__ __volatile__ (
    7777    "lock               \n\t"
     
    8080    : "=a" (Result),          // %0
    8181      "=m" (*Value)           // %1
    82     : "m"  (*Value)           // %2 
     82    : "m"  (*Value)           // %2
    8383    : "memory",
    8484      "cc"
    8585    );
    86    
     86
    8787  return Result;
    8888}
     
    122122    : "q"  (ExchangeValue),   // %1
    123123      "m"  (*Value),          // %2
    124       "0"  (CompareValue)     // %4 
     124      "0"  (CompareValue)     // %4
    125125    : "memory",
    126126      "cc"
     
    157157  __asm__ __volatile__ (
    158158    "                       \n\t"
    159     "push        %%ebx      \n\t" 
    160     "movl        %2,%%ebx   \n\t"   
     159    "push        %%ebx      \n\t"
     160    "movl        %2,%%ebx   \n\t"
    161161    "lock                   \n\t"
    162162    "cmpxchg8b   (%1)       \n\t"
     
    169169      "cc"
    170170    );
    171  
     171
    172172  return CompareValue;
    173173}
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseSynchronizationLib/Synchronization.c

    r58459 r58466  
    2323
    2424  This function retrieves the spin lock alignment requirements for optimal
    25   performance on a given CPU architecture. The spin lock alignment is byte alignment. 
     25  performance on a given CPU architecture. The spin lock alignment is byte alignment.
    2626  It must be a power of two and is returned by this function. If there are no alignment
    2727  requirements, then 1 must be returned. The spin lock synchronization
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseSynchronizationLib/SynchronizationGcc.c

    r58459 r58466  
    1717
    1818//
    19 // GCC inline assembly for Read Write Barrier 
     19// GCC inline assembly for Read Write Barrier
    2020//
    2121#define _ReadWriteBarrier() do { __asm__ __volatile__ ("": : : "memory"); } while(0)
     
    2929
    3030  This function retrieves the spin lock alignment requirements for optimal
    31   performance on a given CPU architecture. The spin lock alignment is byte alignment. 
     31  performance on a given CPU architecture. The spin lock alignment is byte alignment.
    3232  It must be a power of two and is returned by this function. If there are no alignment
    3333  requirements, then 1 must be returned. The spin lock synchronization
     
    192192  SPIN_LOCK   LockValue;
    193193  VOID        *Result;
    194  
     194
    195195  ASSERT (SpinLock != NULL);
    196196
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseSynchronizationLib/SynchronizationMsc.c

    r58459 r58466  
    3131
    3232  This function retrieves the spin lock alignment requirements for optimal
    33   performance on a given CPU architecture. The spin lock alignment is byte alignment. 
     33  performance on a given CPU architecture. The spin lock alignment is byte alignment.
    3434  It must be a power of two and is returned by this function. If there are no alignment
    3535  requirements, then 1 must be returned. The spin lock synchronization
     
    194194  SPIN_LOCK   LockValue;
    195195  VOID        *Result;
    196  
     196
    197197  ASSERT (SpinLock != NULL);
    198198
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseSynchronizationLib/X64/GccInline.c

    r48674 r58466  
    11/** @file
    22  GCC inline implementation of BaseSynchronizationLib processor specific functions.
    3  
     3
    44  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
    5   Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR> 
     5  Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
    66  This program and the accompanying materials
    77  are licensed and made available under the terms and conditions of the BSD License
     
    4444    : "=a" (Result),          // %0
    4545      "=m" (*Value)           // %1
    46     : "m"  (*Value)           // %2 
     46    : "m"  (*Value)           // %2
    4747    : "memory",
    4848      "cc"
    4949    );
    50    
    51   return Result;   
     50
     51  return Result;
    5252}
    5353
     
    7373{
    7474   UINT32  Result;
    75  
     75
    7676  __asm__ __volatile__ (
    7777    "lock               \n\t"
     
    8080    : "=a" (Result),          // %0
    8181      "=m" (*Value)           // %1
    82     : "m"  (*Value)           // %2 
     82    : "m"  (*Value)           // %2
    8383    : "memory",
    8484      "cc"
    8585    );
    86    
     86
    8787  return Result;
    8888}
     
    123123      "=m" (*Value)           // %1
    124124    : "a"  (CompareValue),    // %2
    125       "r"  (ExchangeValue),   // %3 
     125      "r"  (ExchangeValue),   // %3
    126126      "m"  (*Value)
    127127    : "memory",
    128128      "cc"
    129129    );
    130    
     130
    131131  return CompareValue;
    132132}
     
    165165      "=m" (*Value)           // %1
    166166    : "a"  (CompareValue),    // %2
    167       "r"  (ExchangeValue),   // %3 
     167      "r"  (ExchangeValue),   // %3
    168168      "m"  (*Value)
    169169    : "memory",
    170170      "cc"
    171171    );
    172  
     172
    173173  return CompareValue;
    174174}
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