[fpc-devel] ARM-Linux, ARMv5 runtime detection fails

Micha Nelissen micha at neli.hopto.org
Fri Mar 14 11:51:14 CET 2008


Bernd Mueller wrote:
> ok, it does not work. This is what I guessed. But I am in doubt about 
> your current fix:
> 
>   asm
>     bic r0,sp,#7
>     ldrd r0,[r0]
>   end;
> 
> r0 is double word (8 byte) aligned now, but does it always point to a 
> valid memory location? IMHO something like that would be better:

Stack is mapped in, and aligned to, pages of 4096 bytes (or bigger), so 
this is guaranteed to work.

Micha



More information about the fpc-devel mailing list