summaryrefslogtreecommitdiffstats
path: root/examples/stubs.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-07-26 08:08:08 +0000
committerwdenk <wdenk>2003-07-26 08:08:08 +0000
commit7784674852c66b0924bdc79062bd208aa51fd0a9 (patch)
treedf62c40f9c04ebf3b5f8c2bea9e1bc80ae05cb8d /examples/stubs.c
parent27b207fd0a0941b03f27e2a82c0468b1a090c745 (diff)
downloadu-boot-7784674852c66b0924bdc79062bd208aa51fd0a9.tar.gz
u-boot-7784674852c66b0924bdc79062bd208aa51fd0a9.tar.xz
u-boot-7784674852c66b0924bdc79062bd208aa51fd0a9.zip
* Allow crc32 to be used at address 0x000
* Provide consistent interface to standalone applications to access the 'global_data' structure Provide a doc/README.standalone more useful to users/developers. * Make IceCube MGT5100 FEC driver work
Diffstat (limited to 'examples/stubs.c')
-rw-r--r--examples/stubs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/stubs.c b/examples/stubs.c
index c0ef65048e..9c4c51b0e4 100644
--- a/examples/stubs.c
+++ b/examples/stubs.c
@@ -9,6 +9,7 @@
* to the application program.
*/
static void **jt;
+gd_t *global_data;
#define EXPORT_FUNC(x) \
asm volatile ( \
@@ -80,7 +81,8 @@ void app_startup(char **argv)
{
#if defined(CONFIG_I386)
/* x86 does not have a dedicated register for passing global_data */
- jt = ((gd_t *)argv[-1])->jt;
+ global_data = (gd_t *)argv[-1];
+ jt = global_data->jt;
#endif
}