[fpc-devel] ARM-Linux, ARMv5 runtime detection fails
Bernd Mueller
mueller.b at gmx.net
Fri Mar 14 11:55:28 CET 2008
Micha Nelissen wrote:
> 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.
ok, thanks for the fix.
Regards, Bernd.
More information about the fpc-devel
mailing list