Subversion Repositories freemyipod

Rev

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

Rev 603 Rev 618
Line 39... Line 39...
39
    uint16_t (*bbt)[0x20];
39
    uint16_t (*bbt)[0x20];
40
    bool success = false;
40
    bool success = false;
41
    while (bbtpages <= 32832)
41
    while (bbtpages <= 32832)
42
    {
42
    {
43
        bbtsize = bbtpages << 6;
43
        bbtsize = bbtpages << 6;
-
 
44
        l0count = (sectors - bbtsize + 0xfffff) >> 19;
44
        bbt = malloc(bbtsize);
45
        bbt = malloc(bbtsize);
45
        memset(bbt, 0, bbtsize);
46
        memset(bbt, 0, bbtsize);
46
        int logical = 0;
47
        int logical = 0;
47
        int physical = 1;
48
        int physical = 1;
48
        int remapbase;
49
        int remapbase;