diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:01:28 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:01:28 +0200 |
commit | a8421600d1d1a03a322e45b00db318dbf80fa03f (patch) | |
tree | 2505edb543d29d6a2442928624773e80a0b542df /common/exports.c | |
parent | a21d0bc4c26e1af4e75c09aa293739a339a400b5 (diff) | |
download | barebox-a8421600d1d1a03a322e45b00db318dbf80fa03f.tar.gz barebox-a8421600d1d1a03a322e45b00db318dbf80fa03f.tar.xz |
svn_rev_152
remove global data gd_t and board info bd_t entirely for arm
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 + |