Re: GCC ARM: aligned access

2014-09-03 Thread Bin.Cheng
On Mon, Sep 1, 2014 at 9:14 AM, Peng Fan van.free...@gmail.com wrote: On 09/01/2014 08:09 AM, Matt Thomas wrote: On Aug 31, 2014, at 11:32 AM, Joel Sherrill joel.sherr...@oarcorp.com wrote: Hi, I am writing some code and found that system crashed. I found it was unaligned access which

Re: GCC ARM: aligned access

2014-09-02 Thread Julian Brown
On Mon, 1 Sep 2014 09:14:31 +0800 Peng Fan van.free...@gmail.com wrote: On 09/01/2014 08:09 AM, Matt Thomas wrote: On Aug 31, 2014, at 11:32 AM, Joel Sherrill joel.sherr...@oarcorp.com wrote: I think this is totally expected. You were passed a u8 pointer which is aligned for that type

Re: GCC ARM: aligned access

2014-09-02 Thread Peng Fan
On 09/02/2014 09:25 PM, Julian Brown wrote: On Mon, 1 Sep 2014 09:14:31 +0800 Peng Fan van.free...@gmail.com wrote: On 09/01/2014 08:09 AM, Matt Thomas wrote: On Aug 31, 2014, at 11:32 AM, Joel Sherrill joel.sherr...@oarcorp.com wrote: I think this is totally expected. You were passed a

Re: GCC ARM: aligned access

2014-09-01 Thread Senthil Kumar Selvaraj
On Mon, Sep 01, 2014 at 09:14:31AM +0800, Peng Fan wrote: On 09/01/2014 08:09 AM, Matt Thomas wrote: On Aug 31, 2014, at 11:32 AM, Joel Sherrill joel.sherr...@oarcorp.com wrote: Hi, I am writing some code and found that system crashed. I found it was unaligned access which

GCC ARM: aligned access

2014-08-31 Thread Peng Fan
Hi, I am writing some code and found that system crashed. I found it was unaligned access which causes `data abort` exception. I write a piece of code and objdump it. I am not sure this is right or not. command: arm-poky-linux-gnueabi-gcc -marm -mno-thumb-interwork -mabi=aapcs-linux

Re: GCC ARM: aligned access

2014-08-31 Thread Joel Sherrill
On August 31, 2014 8:19:49 AM CDT, Peng Fan van.free...@gmail.com wrote: Hi, I am writing some code and found that system crashed. I found it was unaligned access which causes `data abort` exception. I write a piece of code and objdump it. I am not sure this is right or not. command:

Re: GCC ARM: aligned access

2014-08-31 Thread Matt Thomas
On Aug 31, 2014, at 11:32 AM, Joel Sherrill joel.sherr...@oarcorp.com wrote: Hi, I am writing some code and found that system crashed. I found it was unaligned access which causes `data abort` exception. I write a piece of code and objdump it. I am not sure this is right or not.

Re: GCC ARM: aligned access

2014-08-31 Thread Peng Fan
On 09/01/2014 08:09 AM, Matt Thomas wrote: On Aug 31, 2014, at 11:32 AM, Joel Sherrill joel.sherr...@oarcorp.com wrote: Hi, I am writing some code and found that system crashed. I found it was unaligned access which causes `data abort` exception. I write a piece of code and objdump