umesh writes:
> Code: e129f003 e1a00000 (e8807f00) e129f000 e1a00000

Ah ha.

Change the register allocations after the asm from:

        : "=r" (tmp), "=r" (tmp2)

to be:

        : "=&r" (tmp), "=&r" (tmp2)

The '&' tells gcc that the output register may be written to before
the input registers are used.
   _____
  |_____| ------------------------------------------------- ---+---+-
  |   |        Russell King       [EMAIL PROTECTED]      --- ---
  | | | |            http://www.arm.linux.org.uk/            /  /  |
  | +-+-+                                                     --- -+-
  /   |               THE developer of ARM Linux              |+| /|\
 /  | | |                                                     ---  |
    +-+-+ -------------------------------------------------  /\\\  |

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm

Reply via email to