Lines Matching +full:implementation +full:- +full:dependent
1 Design Notes on Exporting U-Boot Functions to Standalone Applications:
4 1. The functions are exported by U-Boot via a jump table. The jump
15 gd->jt->malloc = my_malloc;
16 gd->jt->free = my_free;
22 machine-dependent way. PowerPC, ARM, MIPS, Blackfin and Nios II
27 structure is passed as 'argv[-1]' pointer.
30 way as U-Boot does:
34 printf("U-Boot relocation offset: %x\n", gd->reloc_off);
39 U-Boot. To facilitate this, a get_version() function is exported
40 that returns the ABI version of the running U-Boot. I.e., a
61 RISC-V 0x00600000 0x00600000
72 - Append the following line at the end of the include/_exports.h
78 - the first parameter is the function that is exported (default implementation)
79 - the second parameter is the return value type
80 - the third parameter is the name of the member in struct jt_funcs
84 - Add the prototype for this function to the include/exports.h
89 Initialization with the default implementation is done in jumptable_init()
91 You can override the default implementation using:
93 gd->jt->foobar = another_foobar;
97 - Increase the XF_VERSION value by one in the include/exports.h
100 - If you want to export a function which depends on a CONFIG_XXX
109 6. The code for exporting the U-Boot functions to applications is
110 mostly machine-independent. The only places written in assembly
118 Note that these functions may only use call-clobbered registers;