Subversion Repositories freemyipod

Rev

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

Rev 374 Rev 375
Line 258... Line 258...
258
    {
258
    {
259
        if (oldnorword[0] == 0x53436667) appleflash = true;
259
        if (oldnorword[0] == 0x53436667) appleflash = true;
260
        else panic(PANIC_KILLTHREAD, "Boot flash contents are damaged! "
260
        else panic(PANIC_KILLTHREAD, "Boot flash contents are damaged! "
261
                                     "(No SYSCFG found)\n\nPlease ask for help.\n");
261
                                     "(No SYSCFG found)\n\nPlease ask for help.\n");
262
    }
262
    }
263
    if (appleflash) memcpy(&norbuf[0x1000], &oldnor[0x4000], 0x1000);
263
    if (appleflash) memcpy(&norbuf[0x1000], &oldnor[0], 0x1000);
264
    else memcpy(&norbuf[0x1000], &oldnor[0x1000], 0x1000);
264
    else memcpy(&norbuf[0x1000], &oldnor[0x1000], 0x1000);
265
    uint32_t sp = 0;
265
    uint32_t sp = 0;
266
    uint32_t beginptr = 0x2000;
266
    uint32_t beginptr = 0x2000;
267
    uint32_t endptr = 0x100000;
267
    uint32_t endptr = 0x100000;
268
    uint32_t dirptr = 0;
268
    uint32_t dirptr = 0;