projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c24929
)
armv8: semihosting: do not inline trap call
author
Linus Walleij
<linus.walleij@linaro.org>
Mon, 23 Mar 2015 10:06:10 +0000
(11:06 +0100)
committer
Tom Rini
<trini@konsulko.com>
Sat, 28 Mar 2015 16:07:45 +0000
(12:07 -0400)
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>
arch/arm/lib/semihosting.c
patch
|
blob
|
history
diff --git
a/arch/arm/lib/semihosting.c
b/arch/arm/lib/semihosting.c
index fd6d8573f560fd1064f43540fea6b43c2a7ebd07..d3f724b726e19da7004ecabdc5ff38512a7df63a 100644
(file)
--- a/
arch/arm/lib/semihosting.c
+++ b/
arch/arm/lib/semihosting.c
@@
-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)