[U-Boot] [PATCH 01/19] x86: Add a definition of asmlinkage
Simon Glass
sjg at chromium.org
Sat Nov 15 04:56:27 CET 2014
This is needed to permit calling C from assembler without too much pain.
Add a definition for x86.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
include/common.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/common.h b/include/common.h
index 28fba79..d02e42b 100644
--- a/include/common.h
+++ b/include/common.h
@@ -72,6 +72,9 @@ typedef volatile unsigned char vu_char;
#ifdef CONFIG_ARM
#define asmlinkage /* nothing */
#endif
+#ifdef CONFIG_X86
+#define asmlinkage __attribute__((regparm(0)))
+#endif
#ifdef CONFIG_BLACKFIN
#include <asm/blackfin.h>
#endif
--
2.1.0.rc2.206.gedb03e5
More information about the U-Boot
mailing list