mirror of
https://github.com/justinian/jsix.git
synced 2025-12-09 16:04:32 -08:00
Remove AHCI debug dumps
This commit is contained in:
@@ -95,7 +95,6 @@ hba::hba(pci_device *device)
|
||||
m_data->host_control |= 0x02; // enable interrupts
|
||||
}
|
||||
|
||||
dump();
|
||||
for (auto &p : m_ports) {
|
||||
if (!p.active()) continue;
|
||||
|
||||
|
||||
@@ -311,15 +311,11 @@ port::read_async(uint64_t offset, size_t length, void *dest)
|
||||
size_t
|
||||
port::read(uint64_t offset, size_t length, void *dest)
|
||||
{
|
||||
dump();
|
||||
int slot = read_async(offset, length, dest);
|
||||
dump();
|
||||
|
||||
int timeout = 0;
|
||||
while (m_pending[slot].type == command_type::read) {
|
||||
if (timeout++ > 5) {
|
||||
m_hba->dump();
|
||||
dump();
|
||||
return 0;
|
||||
}
|
||||
asm("hlt");
|
||||
@@ -384,7 +380,6 @@ port::handle_interrupt()
|
||||
|
||||
if (m_data->interrupt_status & 0x40000000) {
|
||||
log::error(logs::driver, "AHCI task file error");
|
||||
dump();
|
||||
kassert(0, "Task file error");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user