[fpc-pascal] arm-linux, no bus error on misaligned data access

Daniël Mantione daniel.mantione at freepascal.org
Tue Feb 26 09:29:13 CET 2008



Op Tue, 26 Feb 2008, schreef Bernd Mueller:

> Hello,
>
> my ARM-Linux board seems to be resistant against bus errors/misaligned data 
> access or the compiler does some magic to prevent these ;-)

Yes, the kernel "fixes" the unaligned access.

> It would help me, to debug a program, when my board would abort with an error 
> message, so that I can isolate the bug.
> Does someone know, if there exists something like a Linux option do 
> disable/enable data aborts?

Yes, if you want signals, do:

echo 4 > /proc/cpu/alignment

... and your program should abort at any unaligned access.

Daniël


More information about the fpc-pascal mailing list