diff options
author | wdenk <wdenk> | 2003-07-26 08:08:08 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-07-26 08:08:08 +0000 |
commit | 7784674852c66b0924bdc79062bd208aa51fd0a9 (patch) | |
tree | df62c40f9c04ebf3b5f8c2bea9e1bc80ae05cb8d /examples/stubs.c | |
parent | 27b207fd0a0941b03f27e2a82c0468b1a090c745 (diff) | |
download | u-boot-imx-7784674852c66b0924bdc79062bd208aa51fd0a9.zip u-boot-imx-7784674852c66b0924bdc79062bd208aa51fd0a9.tar.gz u-boot-imx-7784674852c66b0924bdc79062bd208aa51fd0a9.tar.bz2 |
* 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.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/stubs.c b/examples/stubs.c index c0ef650..9c4c51b 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 } |