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 --- include/common.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/common.h b/include/common.h index d22787542e..d2347f8629 100644 --- a/include/common.h +++ b/include/common.h @@ -146,6 +146,12 @@ unsigned long strtoul_suffix(const char *str, char **endp, int base); void start_barebox(void); void shutdown_barebox(void); +/* + * architectures which have special calling conventions for + * executing programs should set this. Used by the 'go' command + */ +extern void (*do_execute)(void *func, int argc, char *argv[]); + void arch_shutdown(void); int run_shell(void); -- cgit v1.2.3