armv8: semihosting: do not inline trap call

The semihosting trap call does not like being inlined, probably
because that will mean register reordering screwing up the return
value in r0, so tag this function "noinline".

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Linus Walleij 2015-03-23 11:06:10 +01:00 committed by Tom Rini
parent 8c24929019
commit e769f68613

View File

@ -26,7 +26,7 @@
/*
* Call the handler
*/
static long smh_trap(unsigned int sysnum, void *addr)
static noinline long smh_trap(unsigned int sysnum, void *addr)
{
register long result asm("r0");
#if defined(CONFIG_ARM64)