From: Simon Glass Date: Sat, 15 Nov 2014 03:56:27 +0000 (-0700) Subject: x86: Add a definition of asmlinkage X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=ed0a2fbf14f7f87c437eb5fd99a994fa5d12f07a;p=u-boot.git 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 --- diff --git a/include/common.h b/include/common.h index f1ab2cf5f4..94c354b37c 100644 --- a/include/common.h +++ b/include/common.h @@ -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 #endif