Re: Getting rid of alignment faults in userspace

2011-06-18 Thread Andy Green
On 06/17/2011 11:53 PM, Somebody in the thread at some point said: Hi - int main(int argc, char * argv[]) { char buf[8]; void *v =&buf[1]; unsigned int *p = (unsigned int *)v; This does not (reliably) do what you expect. The compiler need not align buf. What? Somebod

Re: Getting rid of alignment faults in userspace

2011-06-17 Thread Andy Green
On 06/17/2011 08:17 PM, Somebody in the thread at some point said: On 06/17/2011 08:11 AM, Andy Green wrote: On 06/17/2011 01:10 PM, Somebody in the thread at some point said: Hi - I've recently become aware that a few packages are causing alignment faults on ARM, and are relying o

Re: Getting rid of alignment faults in userspace

2011-06-17 Thread Andy Green
On 06/17/2011 01:10 PM, Somebody in the thread at some point said: Hi - I've recently become aware that a few packages are causing alignment faults on ARM, and are relying on the alignment fixup emulation code in the kernel in order to work. Just a FYI a lot of later ARM chips are solving ali