Insure that your pointers to registers are declared with "volatile".
Frequently programmers, including me (only sometimes), think there's a
compiler bug but it turns out it's poor programming. Remember, there's
a good chance that the compiler version you're using has been used to
build the Linux kernel and the compiler was probably also used to
build itself (or the next version of the compiler). Usually, if that
kind of compilation is done it will show compiler bugs. Your code is
still pretty simple in comparison (and most of mine is too).
----
Andy
--- In "berryma4" <> wrote:
>
>
>
> Thank you!
>
> I wasn't using the -mcpu=arm9 option, but now I am. But
> unfortunately, I'm still getting this shift ... but only on arm .. my
> code doesn't do this on my x86 board. So, the data is written to a
> register after the case statement, ... what happens to it next? Why
> the shift? Seems like a compiler optimization problem.
>
> Thank you for any help!
> Eric
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|