Browse Source

x86: Add a definition of asmlinkage

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>
Simon Glass 10 years ago
parent
commit
ed0a2fbf14
1 changed files with 3 additions and 0 deletions
  1. 3 0
      include/common.h

+ 3 - 0
include/common.h

@@ -73,6 +73,9 @@ typedef volatile unsigned char	vu_char;
 #ifdef CONFIG_ARM
 #ifdef CONFIG_ARM
 #define asmlinkage	/* nothing */
 #define asmlinkage	/* nothing */
 #endif
 #endif
+#ifdef CONFIG_X86
+#define asmlinkage __attribute__((regparm(0)))
+#endif
 #ifdef CONFIG_BLACKFIN
 #ifdef CONFIG_BLACKFIN
 #include <asm/blackfin.h>
 #include <asm/blackfin.h>
 #endif
 #endif