Sometimes, OEMs asked suppliers to run bootloader within RAM only. This needs some functions should be called with parameters. This method will help you to achieve it.
General steps are as the follows
1. Defined the section of RAM as the location where functions should be run within
2. Move functions into RAM
3. Call the functions with parameters through pointer function.
Details could be found at attachment.
"Good good study, day day up."
Original Attachment has been moved to: S12G128_23_RAMFunc_00.zip