diff options
author | Simon Glass <sjg@chromium.org> | 2014-11-14 20:56:27 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-11-25 06:34:14 -0700 |
commit | ed0a2fbf14f7f87c437eb5fd99a994fa5d12f07a (patch) | |
tree | 435effb4dba6b59e6ff0e6b345881c57488e1f40 /include/common.h | |
parent | 1ccd452b07c21072c15366d19343b61996ce9486 (diff) | |
download | u-boot-imx-ed0a2fbf14f7f87c437eb5fd99a994fa5d12f07a.zip u-boot-imx-ed0a2fbf14f7f87c437eb5fd99a994fa5d12f07a.tar.gz u-boot-imx-ed0a2fbf14f7f87c437eb5fd99a994fa5d12f07a.tar.bz2 |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index f1ab2cf..94c354b 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 |