mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-12 11:00:28 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue