Re: Strange code in 2.0.pre35 - apricot.c

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 12 Jul 1998 16:53:33 +0100 (BST)


> If it's intentional, what is it supposed to do then? egcs complains that
> the left side of the expression has no effect, so it doesn't compile any
> code for it. I'm not sure about gcc 2.7.2, but if it implements a correct
> C grammer, it should do the same thing.

Egcs picks it up because there is a bug, but that isnt the bug. The bug
is the scb's are not marked as volatile. That while loop polls the status
field then checks the second value it references.

I've put that bit back right in my tree and added the volatile

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html