Subversion Repositories freemyipod

Rev

Rev 247 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 247 Rev 289
Line 48... Line 48...
48
                                                   "when you're done.\n\n"
48
                                                   "when you're done.\n\n"
49
                                                   "If you booted this\n"
49
                                                   "If you booted this\n"
50
                                                   "accidentally, just press and\n"
50
                                                   "accidentally, just press and\n"
51
                                                   "hold MENU+SELECT to reboot.\n";
51
                                                   "hold MENU+SELECT to reboot.\n";
52
 
52
 
53
static uint16_t swapmap[RAMDISK_SECTORS];
53
static uint16_t swapmap[RAMDISK_SECTORS] IBSS_ATTR;
54
static uint16_t swaprev[RAMDISK_SECTORS];
54
static uint16_t swaprev[RAMDISK_SECTORS] IBSS_ATTR;
55
static char swapbuf[RAMDISK_SECTORSIZE];
55
static char swapbuf[RAMDISK_SECTORSIZE];
56
static uint16_t newfat[RAMDISK_SECTORS];
56
static uint16_t newfat[RAMDISK_SECTORS] IBSS_ATTR;
57
static char newdir[RAMDISK_SECTORSIZE];
57
static char newdir[RAMDISK_SECTORSIZE];
58
 
58
 
59
 
59
 
60
extern void* _ramdiskptr;
60
extern void* _ramdiskptr;
61
 
61
 
Line 204... Line 204...
204
    _ramdiskptr = ramdisk[offset - fatsectors];
204
    _ramdiskptr = ramdisk[offset - fatsectors];
205
    memcpy(ramdisk[offset + 1], newdir, RAMDISK_SECTORSIZE);
205
    memcpy(ramdisk[offset + 1], newdir, RAMDISK_SECTORSIZE);
206
    memcpy(ramdisk[offset - fatsectors + 1], newfat, fatsectors * RAMDISK_SECTORSIZE);
206
    memcpy(ramdisk[offset - fatsectors + 1], newfat, fatsectors * RAMDISK_SECTORSIZE);
207
    fat16_write_mbr(_ramdiskptr, totalclusters + fatsectors + 2);
207
    fat16_write_mbr(_ramdiskptr, totalclusters + fatsectors + 2);
208
    lcdconsole_puts("Booting...", 0, 0xffff);
208
    lcdconsole_puts("Booting...", 0, 0xffff);
-
 
209
    displaylcd_sync();
209
    execfirmware(ramdisk[0]);
210
    execfirmware(ramdisk[0]);
210
}
211
}
211
 
212
 
212
void init() INITCODE_ATTR;
213
void init() INITCODE_ATTR;
213
void init()
214
void init()