/* test ex*/ void sc_test_write(u32 write_cnt) { u8* write_buf = NULL; if(write_cnt>0) { write_buf = osl_malloc(write_cnt); if(NULL != write_buf) { memset(write_buf,0x5A,write_cnt); /* write to file*/ (void)bsp_sc_backup(write_buf, write_cnt); osl_free(write_buf); } } }
/* * Function : mdrv_misc_scbackup_ext_write * Discription: c core nv init,this phase build upon the a core kernel init, * this phase after icc init,this phase ensure to use all nv api normal * start at this phase ,ops global ddr need spinlock * Parameter : none * Output : result * History : */ int mdrv_misc_scbackup_ext_write(unsigned char *pRamAddr, unsigned int len) { return (int)bsp_sc_backup((u8*)pRamAddr, (u32)len); }