Changeset 16423


Ignore:
Timestamp:
2009-06-11T14:45:27+02:00 (9 years ago)
Author:
hcg
Message:

Removed delay.h update from 001-handle_removal_h_constraint.patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/octeon/patches/001-handle_removal_h_constraint.patch

    r16307 r16423  
    88--- 
    99 arch/mips/include/asm/compiler.h |    7 +++++++ 
    10  arch/mips/include/asm/delay.h    |    4 ++++ 
    1110 2 files changed, 11 insertions(+), 0 deletions(-) 
    1211 
     
    2524+ 
    2625 #endif /* _ASM_COMPILER_H */ 
    27 --- a/arch/mips/include/asm/delay.h 
    28 +++ b/arch/mips/include/asm/delay.h 
    29 @@ -67,10 +67,14 @@ static inline unsigned long __usecs_to_l 
    30                 : "r" (usecs), "r" (lpj) 
    31                 : GCC_REG_ACCUM); 
    32         else if (sizeof(long) == 8 && !R4000_WAR) 
    33 +#ifdef GCC_NO_H_CONSTRAINT 
    34 +               usecs = ((uint128_t)usecs * lpj) >> 64; 
    35 +#else 
    36                 __asm__("dmultu\t%2, %3" 
    37                 : "=h" (usecs), "=l" (lo) 
    38                 : "r" (usecs), "r" (lpj) 
    39                 : GCC_REG_ACCUM); 
    40 +#endif 
    41         else if (sizeof(long) == 8 && R4000_WAR) 
    42                 __asm__("dmultu\t%3, %4\n\tmfhi\t%0" 
    43                 : "=r" (usecs), "=h" (hi), "=l" (lo) 
Note: See TracChangeset for help on using the changeset viewer.