1
0
mirror of https://github.com/mist-devel/mist-firmware.git synced 2026-04-29 21:37:45 +00:00

Notification about indexing failure

This commit is contained in:
Gyorgy Szombathelyi
2021-05-27 19:40:21 +02:00
parent b7e57ed973
commit 61b1385a59
3 changed files with 8 additions and 3 deletions

4
boot.c
View File

@@ -42,10 +42,10 @@ static void mem_write16(unsigned short x) {
unsigned short bcurx=0;
unsigned short bcury=96;
static int bootscreen_adr = 0x80000 + /*120*/112*640/8;
static int bootscreen_adr = 0x80000 + /*120*/104*640/8;
void BootHome() {
bootscreen_adr = 0x80000 + /*120*/112*640/8;
bootscreen_adr = 0x80000 + /*120*/104*640/8;
}
//// BootEnableMem() ////

View File

@@ -437,6 +437,8 @@ static void ApplyConfiguration(char reloadkickstart)
ConfigFloppy(config.floppy.drives, config.floppy.speed);
}
char idxfail = 0;
hardfile[0] = &config.hardfile[0];
hardfile[1] = &config.hardfile[1];
@@ -465,8 +467,11 @@ static void ApplyConfiguration(char reloadkickstart)
BootPrint(s);
siprintf(s, "Offset: %ld", hdf[i].offset);
BootPrint(s);
if (hdf[i].type & HDF_FILE && !hdf[i].idxfile->file.cltbl) idxfail = 1;
}
}
if (idxfail)
BootPrintEx("Warning! Indexing failed for a hardfile, continuing without indices.");
ConfigIDE(config.enable_ide, config.hardfile[0].present && config.hardfile[0].enabled, config.hardfile[1].present && config.hardfile[1].enabled);

2
hdd.h
View File

@@ -73,7 +73,7 @@ extern hdfTYPE hdf[2];
// functions
void IdentifyDevice(unsigned short *pBuffer, unsigned char unit);
unsigned long chs2lba(unsigned short cylinder, unsigned char head, unsigned short sector, unsigned char unit);
unsigned long chs2lba(unsigned short cylinder, unsigned char head, unsigned short sector, unsigned char unit, char lbamode);
void WriteTaskFile(unsigned char error, unsigned char sector_count, unsigned char sector_number, unsigned char cylinder_low, unsigned char cylinder_high, unsigned char drive_head);
void WriteStatus(unsigned char status);
void HandleHDD(unsigned char c1, unsigned char c2);