From 104a6a7ccfb7928ca5dc28c8cbe0ea231ffc45ee Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Sat, 10 Dec 2011 16:41:07 +0100 Subject: ARM: Allow to compile in thumb-2 mode This shrinks the resulting binary size by ~25%. Exceptions are still handled in arm mode, so we have to explicitely put .arm directives into the exception code. Thumb-2 mode has been tested on i.MX51 Babbage board. Signed-off-by: Sascha Hauer --- commands/go.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'commands') diff --git a/commands/go.c b/commands/go.c index 6082fe54e3..bc984c8ae0 100644 --- a/commands/go.c +++ b/commands/go.c @@ -62,7 +62,11 @@ static int do_go(struct command *cmdtp, int argc, char *argv[]) func = addr; shutdown_barebox(); - func(argc - 1, &argv[1]); + + if (do_execute) + do_execute(func, argc - 1, &argv[1]); + else + func(argc - 1, &argv[1]); /* * The application returned. Since we have shutdown barebox and -- cgit v1.2.3