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 | |
parent | 1ccd452b07c21072c15366d19343b61996ce9486 (diff) |
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')
-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 f1ab2cf5f46..94c354b37ce 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 |