diff options
Diffstat (limited to 'common/exports.c')
-rw-r--r-- | common/exports.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/common/exports.c b/common/exports.c index 70b9c7fe1d..83d2a8ae76 100644 --- a/common/exports.c +++ b/common/exports.c @@ -1,8 +1,11 @@ #include <common.h> +#include <driver.h> +#include <init.h> #include <exports.h> DECLARE_GLOBAL_DATA_PTR; +#if 0 static void dummy(void) { } @@ -12,7 +15,13 @@ unsigned long get_version(void) return XF_VERSION; } -void jumptable_init (void) +/* + * FIXME: instead of using the global data struct for standalone + * programs, just use a register to pass the jumptable. + * For now, this is broken. + */ + +int jumptable_init (void) { int i; @@ -36,4 +45,11 @@ void jumptable_init (void) gd->jt[XF_i2c_write] = (void *) i2c_write; gd->jt[XF_i2c_read] = (void *) i2c_read; #endif /* CFG_CMD_I2C */ + + return 0; } + +late_initcall(jumptable_init); + +#endif + |