diff options
author | Wolfgang Denk <wd@denx.de> | 2008-10-14 12:59:35 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-10-14 12:59:35 +0200 |
commit | 0e8a7b2f1544a593270faf94d028fb48b6b697ea (patch) | |
tree | 0083e790432a5226f83f5384a961165b22d36d27 /examples/stubs.c | |
parent | 6df0efd5c86ca1689deeb2738b46b7d83ce228ef (diff) | |
parent | 05c7e9070fe4d751e029fd9524bfbbc93cbb1393 (diff) | |
download | u-boot-imx-0e8a7b2f1544a593270faf94d028fb48b6b697ea.zip u-boot-imx-0e8a7b2f1544a593270faf94d028fb48b6b697ea.tar.gz u-boot-imx-0e8a7b2f1544a593270faf94d028fb48b6b697ea.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-sh
Diffstat (limited to 'examples/stubs.c')
-rw-r--r-- | examples/stubs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/stubs.c b/examples/stubs.c index ec53532..a8cb954 100644 --- a/examples/stubs.c +++ b/examples/stubs.c @@ -162,11 +162,13 @@ gd_t *global_data; #x ":\n" \ " mov r13, r1\n" \ " add %0, r1\n" \ - " add %1, r1\n" \ + " mov.l @r1, r2\n" \ + " add %1, r2\n" \ + " mov.l @r2, r1\n" \ " jmp @r1\n" \ " nop\n" \ " nop\n" \ - : : "i"(offsetof(gd_t, jt)), "i"(XF_ ## x * sizeof(void *)) : "r1"); + : : "i"(offsetof(gd_t, jt)), "i"(XF_ ## x * sizeof(void *)) : "r1", "r2"); #elif defined(CONFIG_SPARC) /* * g7 holds the pointer to the global_data. g1 is call clobbered. |