refactor: change the disk io api to accept device instead of port struct
[lunaix-os.git] / lunaix-os / kernel / proc0.c
index 759db2c0d19906bdffd2a34e8639615659e50bdb..36d872710a2af622e113c97d053485492790188c 100644 (file)
@@ -119,7 +119,7 @@ void
 __test_disk_io()
 {
     struct hba_port* port = ahci_get_port(0);
 __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;
     strcpy(buffer, test_sequence);
     kprintf("WRITE: %s\n", buffer);
     int result;