The other forum thread says this ...
Please refer the files slpWkup_gcc.S and demo.lds of demo project which demonstrate the relocation of function saveRestoreContext() to internal memory.
Please attach those two files to your next post. I might be able to understand what is going on and give you useful advice.
Thanks and regards,
-George