From 7784674852c66b0924bdc79062bd208aa51fd0a9 Mon Sep 17 00:00:00 2001 From: wdenk Date: Sat, 26 Jul 2003 08:08:08 +0000 Subject: * 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 --- examples/stubs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/stubs.c') 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 } -- cgit