Editing Flash-Main
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 66: | Line 66: | ||
= MBR Types = | = MBR Types = | ||
< | <pre> | ||
typedef struct { | typedef struct | ||
{ | |||
unsigned int offset; | |||
unsigned int size; | |||
unsigned char flag1; | |||
unsigned char flag2; | |||
unsigned short unknown; | |||
unsigned long padding; | |||
} __attribute__((packed)) partition_t; | } __attribute__((packed)) partition_t; | ||
typedef struct | typedef struct | ||
{ | |||
uint8_t sony[0x20]; | |||
uint32_t version; | |||
uint32_t total_size; | |||
uint64_t padding; | |||
uint32_t flag1; | |||
uint32_t flag2; | |||
uint64_t padding2; | |||
partition_t partitions[16]; | |||
} __attribute__((packed)) master_block_t; | |||
uint8_t | </pre> | ||
uint32_t version; | |||
uint32_t | |||
uint64_t | |||
uint32_t | |||
uint32_t | |||
uint64_t | |||
partition_t partitions[16]; | |||
} __attribute__((packed)) | |||
</ | |||
= MBR Contents (Example) (Internal) = | = MBR Contents (Example) (Internal) = |