__test_disk_io()
{
struct hba_port* port = ahci_get_port(0);
- char* buffer = vcalloc_dma(port->device->block_size);
+ char* buffer = vzalloc_dma(port->device->block_size);
strcpy(buffer, test_sequence);
kprintf("WRITE: %s\n", buffer);
int result;
} else {
kprint_hex(buffer, 256);
}
+
+ vfree_dma(buffer);
}
void