#include <config.h>
typedef struct {
- uint8_t status;
- uint8_t chs_first[3];
- uint8_t type;
- uint8_t chs_last[3];
+ /* Described this way so that it packs */
+ uint8_t status_chs_first[4];
+ uint8_t type_chs_last[4];
uint32_t lba_first;
uint32_t lba_count;
} partition_table_entry_t;
blk_op.lba = 0;
for(i=0; i<MBR_ENTRY_COUNT && next < MAX_PARTITIONS; i++){
- switch(br->partition[i].type){
+ switch(br->partition[i].type_chs_last[0]){
case 0:
break;
case 0x05: