mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-26 23:36:32 +00:00
Fix AHCIBootDVDProbeAll buffer read error try catch.
This commit is contained in:
parent
a25b7fd03f
commit
675b9c1f42
1 changed files with 12 additions and 12 deletions
|
@ -1153,23 +1153,23 @@ Bool AHCIBootDVDProbeAll(CBlkDev *bd)
|
||||||
AHCIPortInit(bd, port, i);
|
AHCIPortInit(bd, port, i);
|
||||||
|
|
||||||
AHCIAtapiBlksRead(bd, buf, sys_boot_blk, 1, FALSE);
|
AHCIAtapiBlksRead(bd, buf, sys_boot_blk, 1, FALSE);
|
||||||
|
|
||||||
|
kernel = buf + sys_boot_src.u16[1] << BLK_SIZE_BITS;
|
||||||
|
|
||||||
|
if (kernel->compile_time == sys_compile_time)
|
||||||
|
{
|
||||||
|
"AHCI: Found sys_compile_time at BLK %d on Port %d\n", sys_boot_blk, i;
|
||||||
|
"______________________\n";
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
"AHCI: Did not find matching sys_compile_time on Port %d\n", i;
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
Fs->catch_except = TRUE;
|
Fs->catch_except = TRUE;
|
||||||
"AHCI: Error at Port %d", i;
|
"AHCI: Error at Port %d\n", i;
|
||||||
}
|
}
|
||||||
|
|
||||||
kernel = buf + sys_boot_src.u16[1] << BLK_SIZE_BITS;
|
|
||||||
|
|
||||||
if (kernel->compile_time == sys_compile_time)
|
|
||||||
{
|
|
||||||
"AHCI: Found sys_compile_time at BLK %d on Port %d\n", sys_boot_blk, i;
|
|
||||||
"______________________\n";
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
"AHCI: Did not find matching sys_compile_time on Port %d\n", i;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue