Hooks are the functions that can be defined by you. FSBL provides blank functions and executes them from certain strategic locations. The following table shows the currently available hooks.
Hook Purpose/Location | Hook Function Name |
---|---|
Before PL bitstream loading | XFsbl_HookBeforeBSDownload() |
After PL bitstream loading | XFsbl_HookAfterBSDownload() |
Before (the first) Handoff (to any application) | XFsbl_HookBeforeHandoff() |
Before fallback | XFsbl_HookBeforeFallback() |
To add more initialization code, in addition to that in psu_init or to replace psu_init with custom initialization | XFsbl_HookPsuInit(() |
See FSBL wiki page for more information on FSBL.