summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2007-12-27 01:52:50 +0100
committerWolfgang Denk <wd@denx.de>2007-12-27 01:52:50 +0100
commit61fb15c516fef5631e305f1976d7b3a679725856 (patch)
tree3b3e66c90349f1b5df7c2a05dd47c11f42eb58bd /examples
parent6e1bbe6e3edf5f508de89114577ce7b7caa89c8a (diff)
downloadu-boot-61fb15c516fef5631e305f1976d7b3a679725856.tar.gz
u-boot-61fb15c516fef5631e305f1976d7b3a679725856.tar.bz2
u-boot-61fb15c516fef5631e305f1976d7b3a679725856.zip
Fix coding style issues; update CHANGELOG.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'examples')
-rw-r--r--examples/stubs.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/stubs.c b/examples/stubs.c
index 263dd8c3de..571c4d50a4 100644
--- a/examples/stubs.c
+++ b/examples/stubs.c
@@ -132,7 +132,7 @@ gd_t *global_data;
*/
#define EXPORT_FUNC(x) \
asm volatile ( \
-" .globl _" #x "\n_" \
+" .globl _" #x "\n_" \
#x ":\n" \
" P0 = [P5 + %0]\n" \
" P0 = [P0 + %1]\n" \
@@ -155,17 +155,17 @@ gd_t *global_data;
/*
* r13 holds the pointer to the global_data. r1 is a call clobbered.
*/
-#define EXPORT_FUNC(x) \
- asm volatile ( \
- " .align 2\n" \
- " .globl " #x "\n" \
- #x ":\n" \
- " mov r13, r1\n" \
- " add %0, r1\n" \
- " add %1, r1\n" \
- " jmp @r1\n" \
- " nop\n" \
- " nop\n" \
+#define EXPORT_FUNC(x) \
+ asm volatile ( \
+ " .align 2\n" \
+ " .globl " #x "\n" \
+ #x ":\n" \
+ " mov r13, r1\n" \
+ " add %0, r1\n" \
+ " add %1, r1\n" \
+ " jmp @r1\n" \
+ " nop\n" \
+ " nop\n" \
: : "i"(offsetof(gd_t, jt)), "i"(XF_ ## x * sizeof(void *)) : "r1");
#else
#error stubs definition missing for this architecture