FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/services/ffs/task.c @ 861:6ffebb8cec78
implemented feature mokoffs copy; made it part of the gtamodem-gsm config
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Sun, 03 May 2015 05:10:58 +0000 |
parents | d779078abe40 |
children |
comparison
equal
deleted
inserted
replaced
860:cbc49d533b7d | 861:6ffebb8cec78 |
---|---|
208 //ttr_init(TTrTask|TTrTest|TTrTestInfo|TTrDrvErase|TTrDrvWrite|TTrTaskLow|TTrApi); | 208 //ttr_init(TTrTask|TTrTest|TTrTestInfo|TTrDrvErase|TTrDrvWrite|TTrTaskLow|TTrApi); |
209 | 209 |
210 tmp_int_level = TCD_Interrupt_Level; // Backup Int level | 210 tmp_int_level = TCD_Interrupt_Level; // Backup Int level |
211 TCD_Interrupt_Level = 0xC0; // The Interrups are not yet enabled.. | 211 TCD_Interrupt_Level = 0xC0; // The Interrups are not yet enabled.. |
212 #if FFS_IN_RAM | 212 #if FFS_IN_RAM |
213 #if CONFIG_MOKOFFS_COPY | |
214 bcopy_32byte_chunks(0x380000, _RAMFFS_area, 0x70000); | |
215 #else | |
213 memset(_RAMFFS_area, 0xFF, RAMFFS_TOTAL_SIZE); | 216 memset(_RAMFFS_area, 0xFF, RAMFFS_TOTAL_SIZE); |
217 #endif | |
214 #endif | 218 #endif |
215 ffs_init_status = ffs_initialize(); | 219 ffs_init_status = ffs_initialize(); |
216 TCD_Interrupt_Level = tmp_int_level; // Restore Int level | 220 TCD_Interrupt_Level = tmp_int_level; // Restore Int level |
217 | 221 |
218 #if 0 // moved to Application_Initialize() - FreeCalypso change | 222 #if 0 // moved to Application_Initialize() - FreeCalypso change |
252 uint32 base; | 256 uint32 base; |
253 fd_t fdi; | 257 fd_t fdi; |
254 char *temp_path; | 258 char *temp_path; |
255 req_id_t temp_id; | 259 req_id_t temp_id; |
256 | 260 |
257 #if FFS_IN_RAM | 261 #if FFS_IN_RAM && !CONFIG_MOKOFFS_COPY |
258 // Non formatted FFS should be formatted | 262 // Non formatted FFS should be formatted |
259 // So we don't have to use PCTM to format it | 263 // So we don't have to use PCTM to format it |
260 if (fs.initerror == EFFS_NOFORMAT) | 264 if (fs.initerror == EFFS_NOFORMAT) |
261 { | 265 { |
262 ffs_format_nb("/", 0x2BAD, 0); | 266 ffs_format_nb("/", 0x2BAD, 0); |