ahci & exynos5: compliant exceptions on creation

Use Root::Unavailable exceptions instead of driver specific ones
on session construction.
This commit is contained in:
Martin Stein 2013-06-26 15:51:05 +02:00 committed by Stefan Kalkowski
parent cfa3d38417
commit 198f8b65a4
1 changed files with 3 additions and 3 deletions

View File

@ -1914,9 +1914,9 @@ Ahci_driver::Ahci_driver()
clock_src.state(true);
power_src.state(true);
i2c_sataphy()->init();
if (sata_phy_ctrl()->init()) throw Io_error();
if (sata_ahci()->init()) throw Io_error();
if (sata_ahci()->p0_init()) throw Io_error();
if (sata_phy_ctrl()->init()) throw Root::Unavailable();
if (sata_ahci()->init()) throw Root::Unavailable();
if (sata_ahci()->p0_init()) throw Root::Unavailable();
}
int Ahci_driver::_ncq_command(uint64_t lba, unsigned cnt, addr_t phys, bool w)