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:
parent
8c24929019
commit
e769f68613
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user