Changeset 2a3124c in mainline for kernel/arch/mips32/include/atomic.h


Ignore:
Timestamp:
2008-06-18T09:47:26Z (17 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
18ad03f3
Parents:
4a23cb6
Message:

Fix mips32 atomic_add() which would break build unless a constant was propagated into the second argument. (Specifically at -O0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/include/atomic.h

    r4a23cb6 r2a3124c  
    5959                "1:\n"
    6060                "       ll %0, %1\n"
    61                 "       addiu %0, %0, %3\n"     /* same as addi, but never traps on overflow */
     61                "       addu %0, %0, %3\n"      /* same as addi, but never traps on overflow */
    6262                "       move %2, %0\n"
    6363                "       sc %0, %1\n"
     
    6565                "       nop\n"
    6666                : "=&r" (tmp), "+m" (val->count), "=&r" (v)
    67                 : "i" (i), "i" (0)
     67                : "r" (i), "i" (0)
    6868                );
    6969
Note: See TracChangeset for help on using the changeset viewer.