Changes

14 bytes added ,  06:40, 9 April 2011
Line 11: Line 11:  
The 3DS employs a wearleveling scheme on the savegame FLASH chips. This is done trough blockmaps. Depending on the size of the flashchip, these are located somewhere at the beginning of the flashchip, in the first sector. The structure is as follows:
 
The 3DS employs a wearleveling scheme on the savegame FLASH chips. This is done trough blockmaps. Depending on the size of the flashchip, these are located somewhere at the beginning of the flashchip, in the first sector. The structure is as follows:
    +
<pre>
 
struct sector_entry {
 
struct sector_entry {
 
         uint8_t virt_sec;      // Mapped to sector
 
         uint8_t virt_sec;      // Mapped to sector
Line 21: Line 22:  
} __attribute__((packed));
 
} __attribute__((packed));
   −
struct long_sector_entry{
+
struct long_sector_entry {
 
         struct sector_entry sector;
 
         struct sector_entry sector;
 
         struct sector_entry dupe;
 
         struct sector_entry dupe;
 
         uint32_t magic;
 
         uint32_t magic;
 
};
 
};
 +
</pre>
    
With magic being a constant 0x080d6ce0.
 
With magic being a constant 0x080d6ce0.
25

edits