From ed0a2fbf14f7f87c437eb5fd99a994fa5d12f07a Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 14 Nov 2014 20:56:27 -0700 Subject: [PATCH] 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 --- include/common.h | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.30.2