Every startup code must initialize internal SRAM as described in AN5200, section 1.1.
For instance CodeWarrior 2.10 have it defined in module MPC5644A_HWInit.c, function below. This code you will have to modify according to your needs. Other compilers may have it done differently, but it must be somewhere in startup code as well.
__asm void INIT_Derivative(void)
{
nofralloc
/* MPC5644A L2SRAM initialization code */
lis r11,L2SRAM_LOCATION@h
ori r11,r11,L2SRAM_LOCATION@l
li r12,1536 /* Loop counter to get all of L2SRAM; 192k/4 bytes/32 GPRs = 1536 */
mtctr r12
init_l2sram_loop:
stmw r0,0(r11) /* Write all 32 GPRs to L2SRAM */
addi r11,r11,128 /* Inc the ram ptr; 32 GPRs * 4 bytes = 128 */
bdnz init_l2sram_loop /* Loop for 192k of L2SRAM */
blr
}