U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/5] armv8: semihosting: do not inline trap call
@ 2015-03-23 10:06 Linus Walleij
  2015-03-23 10:06 ` [U-Boot] [PATCH 2/5] armv8: semihosting: add a command to load semihosted images Linus Walleij
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Linus Walleij @ 2015-03-23 10:06 UTC (permalink / raw)
  To: u-boot

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/lib/semihosting.c b/arch/arm/lib/semihosting.c
index fd6d8573f560..d3f724b726e1 100644
--- 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)
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-03-28 18:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-23 10:06 [U-Boot] [PATCH 1/5] armv8: semihosting: do not inline trap call Linus Walleij
2015-03-23 10:06 ` [U-Boot] [PATCH 2/5] armv8: semihosting: add a command to load semihosted images Linus Walleij
2015-03-28 18:09   ` [U-Boot] [U-Boot, " Tom Rini
2015-03-23 10:06 ` [U-Boot] [PATCH 3/5] vexpress64: remove board late init, use smhload Linus Walleij
2015-03-28 18:09   ` [U-Boot] [U-Boot, " Tom Rini
2015-03-23 10:06 ` [U-Boot] [PATCH 4/5] armv8: semihosting: delete external interface Linus Walleij
2015-03-28 18:10   ` [U-Boot] [U-Boot, " Tom Rini
2015-03-23 10:06 ` [U-Boot] [PATCH 5/5] vexpress64: cut config and defaults for unclear variant Linus Walleij
2015-03-28 18:10   ` [U-Boot] [U-Boot, " Tom Rini
2015-03-28 18:09 ` [U-Boot] [U-Boot, 1/5] armv8: semihosting: do not inline trap call Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox