mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-12-19 08:21:27 +01:00
There have been quite a few changes to _exports.h since the last
update of XF_VERSION, also before the previous patches in this series.
I doubt the mechanism is actually being used in practice, it is simply
too fragile: Not only does the list of exported functions depend on
.config, so with the same XF_VERSION the jump table entries could have
different offsets. But getting to the jump table itself from gd to
even call the ->get_version() is fragile, since offsetof(gd_t, jt)
can, and does, change. For example, as recently as commit
d9902107027 ("global_data: Remove jump table in SPL").
One really must build one's standalone app against the proper U-Boot
version and config.h. But for good measure, do bump it now.
Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
Reviewed-by: Tom Rini <trini@konsulko.com>
50 lines
957 B
C
50 lines
957 B
C
#ifndef __EXPORTS_H__
|
|
#define __EXPORTS_H__
|
|
|
|
#include <irq_func.h>
|
|
#include <asm/global_data.h>
|
|
#include <linux/delay.h>
|
|
|
|
#ifndef __ASSEMBLY__
|
|
#ifdef CONFIG_PHY_AQUANTIA
|
|
#include <env.h>
|
|
#include <phy_interface.h>
|
|
#endif
|
|
|
|
#include <irq_func.h>
|
|
|
|
struct cmd_tbl;
|
|
struct spi_slave;
|
|
|
|
/**
|
|
* jumptable_init() - Set up the jump table for use by the API
|
|
*
|
|
* It is called during the generic post-relocation init sequence.
|
|
*
|
|
* Return: 0 if OK
|
|
*/
|
|
int jumptable_init(void);
|
|
|
|
/* These are declarations of exported functions available in C code */
|
|
#define EXPORT_FUNC(impl, res, func, ...) res func(__VA_ARGS__);
|
|
#include <_exports.h>
|
|
#undef EXPORT_FUNC
|
|
|
|
void app_startup(char * const *);
|
|
|
|
#endif /* ifndef __ASSEMBLY__ */
|
|
|
|
struct jt_funcs {
|
|
#define EXPORT_FUNC(impl, res, func, ...) res(*func)(__VA_ARGS__);
|
|
#include <_exports.h>
|
|
#undef EXPORT_FUNC
|
|
};
|
|
|
|
#define XF_VERSION 10
|
|
|
|
#if defined(CONFIG_X86)
|
|
extern gd_t *global_data;
|
|
#endif
|
|
|
|
#endif /* __EXPORTS_H__ */
|