Rob Leslie rob@mars.org wrote:
BTW, I just stumbled across something you might want to look at:
http://groups.google.com/groups?hl=en&lr=&safe=off&th=b1aed43880...
Oops, looks like my fault :-)
I had vaguely considered whether the code was PIC safe or not, and assumed that because the table of constants is declared inline, and because the ARM has easy access to the program counter (unlike MIPS for example) the assembler would generate the address of the array from the current PC, but I didn't check the final code.
Anyway, the good news is that the fix is fairly easy - the attached patch should do the job. It is however untested (*) so please try it out and let me know.
[ (*) It is untested mainly because I still haven't managed to get Linux working on my ARM 'Integrator' board. I have compiled a kernel, but the 'milo' bootloader for this platform seems to be ARM proprietary and therefore unavailable. If anyone can help me with this I would be most grateful. ]
Andre --
____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie