summaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-14 20:56:27 -0700
committerSimon Glass <sjg@chromium.org>2014-11-25 06:34:14 -0700
commited0a2fbf14f7f87c437eb5fd99a994fa5d12f07a (patch)
tree435effb4dba6b59e6ff0e6b345881c57488e1f40 /include/common.h
parent1ccd452b07c21072c15366d19343b61996ce9486 (diff)
downloadtalos-obmc-uboot-ed0a2fbf14f7f87c437eb5fd99a994fa5d12f07a.tar.gz
talos-obmc-uboot-ed0a2fbf14f7f87c437eb5fd99a994fa5d12f07a.zip
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>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h3
1 files changed, 3 insertions, 0 deletions
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 <asm/blackfin.h>
#endif
OpenPOWER on IntegriCloud