Re: [U-Boot] [PATCH 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-04-16 Thread Tom Rini
On Thu, Apr 16, 2015 at 03:53:56PM +0200, Albert ARIBAUD wrote: > Hello Matt, > > On Tue, 14 Apr 2015 14:07:18 -0400, Matt Porter > wrote: > > On ARM v7M, the processor will return to ARM mode when executing > > a blx instruction with bit 0 of the address == 0. Always set it > > to 1 to stay in t

Re: [U-Boot] [PATCH 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-04-16 Thread Albert ARIBAUD
Hello Matt, On Tue, 14 Apr 2015 14:07:18 -0400, Matt Porter wrote: > On ARM v7M, the processor will return to ARM mode when executing > a blx instruction with bit 0 of the address == 0. Always set it > to 1 to stay in thumb mode. This should be done for all targets which build with Thumb instruc

Re: [U-Boot] [PATCH 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-04-15 Thread Matt Porter
On Wed, Apr 15, 2015 at 08:34:30AM -0400, Tom Rini wrote: > On Wed, Apr 15, 2015 at 12:33:43PM +0200, Kamil Lulko wrote: > > 2015-04-14 20:07 GMT+02:00 Matt Porter : > > > > > > On ARM v7M, the processor will return to ARM mode when executing > > > a blx instruction with bit 0 of the address == 0.

Re: [U-Boot] [PATCH 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-04-15 Thread Tom Rini
On Wed, Apr 15, 2015 at 12:33:43PM +0200, Kamil Lulko wrote: > 2015-04-14 20:07 GMT+02:00 Matt Porter : > > > > On ARM v7M, the processor will return to ARM mode when executing > > a blx instruction with bit 0 of the address == 0. Always set it > > to 1 to stay in thumb mode. > > > > Signed-off-by:

Re: [U-Boot] [PATCH 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-04-15 Thread Kamil Lulko
2015-04-14 20:07 GMT+02:00 Matt Porter : > > On ARM v7M, the processor will return to ARM mode when executing > a blx instruction with bit 0 of the address == 0. Always set it > to 1 to stay in thumb mode. > > Signed-off-by: Matt Porter > --- > common/cmd_boot.c | 4 > 1 file changed, 4 inse

[U-Boot] [PATCH 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-04-15 Thread Matt Porter
On ARM v7M, the processor will return to ARM mode when executing a blx instruction with bit 0 of the address == 0. Always set it to 1 to stay in thumb mode. Signed-off-by: Matt Porter --- common/cmd_boot.c | 4 1 file changed, 4 insertions(+) diff --git a/common/cmd_boot.c b/common/cmd_boo