]> git.sur5r.net Git - u-boot/commitdiff
x86: Add a definition of asmlinkage
authorSimon Glass <sjg@chromium.org>
Sat, 15 Nov 2014 03:56:27 +0000 (20:56 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 25 Nov 2014 13:34:14 +0000 (06:34 -0700)
This is needed to permit calling C from assembler without too much pain.
Add a definition for x86.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/common.h

index f1ab2cf5f469a354d1f808212987fa72dc1699a0..94c354b37ce73e50b4a056eb5567dd34a7b0c912 100644 (file)
@@ -73,6 +73,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