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:
4
boot.c
4
boot.c
@@ -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() ////
|
||||
|
||||
5
config.c
5
config.c
@@ -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
2
hdd.h
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user