Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Detecting unaligned access during runtime: (2 Items)
   
Detecting unaligned access during runtime  
We are using QNX 6.6 with ARMv7 cores. Does QNX have any options to detect unaligned memory access at runtime? With 
linux this can be achieved by
echo 3 > /proc/cpu/alignment to warn and fixup errors.
Re: Detecting unaligned access during runtime  
I think that a thread doing unaligned access creates a fault at processor level that gets translated to a signal (SIGBUS
 I think, but not sure). You can catch that in your application, but not from outside.

To make this wark, you have to disable "alignment fault emulation" in the kernel, its a command line option to procnto. 
(-ad or something)

-Al