projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ccd452
)
x86: Add a definition of asmlinkage
author
Simon Glass
<sjg@chromium.org>
Sat, 15 Nov 2014 03:56:27 +0000
(20:56 -0700)
committer
Simon Glass
<sjg@chromium.org>
Tue, 25 Nov 2014 13:34:14 +0000
(06:34 -0700)
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>
include/common.h
patch
|
blob
|
history
diff --git
a/include/common.h
b/include/common.h
index f1ab2cf5f469a354d1f808212987fa72dc1699a0..94c354b37ce73e50b4a056eb5567dd34a7b0c912 100644
(file)
--- 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