
15 Nov
2014
15 Nov
'14
4:56 a.m.
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 | 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