mbr_sector       1267 platform/generic/wrappers.c int mbr_read(char* mbr_sector, unsigned long drive_total_sectors, unsigned long *part_start_sector,  unsigned long *part_length){
mbr_sector       1274 platform/generic/wrappers.c  if ((mbr_sector[0x1FE]!=0x55) || (mbr_sector[0x1FF]!=0xAA)) return 0; // signature check
mbr_sector       1277 platform/generic/wrappers.c  _memcpy(mbr_buf,mbr_sector,SECTOR_SIZE);
mbr_sector       1282 platform/generic/wrappers.c   *part_start_sector=(*(unsigned short*)(mbr_sector+offset+0x1C8)<<16) | *(unsigned short*)(mbr_sector+offset+0x1C6);
mbr_sector       1283 platform/generic/wrappers.c   *part_length=(*(unsigned short*)(mbr_sector+offset+0x1CC)<<16) | *(unsigned short*)(mbr_sector+offset+0x1CA);
mbr_sector       1288 platform/generic/wrappers.c          ((mbr_sector[offset+0x1BE]==0) || (mbr_sector[offset+0x1BE]==0x80)); // status: 0x80 (active) or 0 (non-active)
mbr_sector       1290 platform/generic/wrappers.c   if (valid && ((mbr_sector[0x1C2+offset]==0x0B) || (mbr_sector[0x1C2+offset]==0x0C))) break;   // FAT32 secondary partition
mbr_sector       1301 platform/generic/wrappers.c int mbr_read_dryos(unsigned long drive_total_sectors, char* mbr_sector ){
mbr_sector       1304 platform/generic/wrappers.c  _memcpy(mbr_buf,mbr_sector,SECTOR_SIZE);