Atomic ops bug

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi all,

An experiment with the DMA Engine framework in the linux kernel has revealed something that looks quite like a bug to me. The compilation of the dmaengine.c file pops up an assembler error

{standard input}: Assembler Message
{standard input}: 617: Error: operand out of range (-2147483647 not between -1048576 and 1048576)

I can trace this to the atomic_sub_return or atomic_add_return functions in include/asm-avr32/atomic.h, dmaengine tries to feed 0x7FFFFFFF to these functions (lines 187 and 193 of dmaengine.c). This is where it ends for me though as my ASM isn't what it used to be! Anyone out there with a bit more skill in this area feel like having a crack at it?

Much obliged,
S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

squidgit wrote:
Anyone out there with a bit more skill in this area feel like having a crack at it?

This was actually fixed shortly after -rc3 :)

http://www.kernel.org/git/?p=lin...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Bah, Haavard mentioned he had a bunch of patches waiting to submit! :D

Cheers.