ahci: remove hello test
This commit is contained in:
parent
f0d072713f
commit
1598837f9a
1 changed files with 0 additions and 8 deletions
|
|
@ -246,13 +246,5 @@ void ahci_init()
|
||||||
pci_config_write_long(dev->bus, dev->slot, dev->func, 0x3C, tmp);
|
pci_config_write_long(dev->bus, dev->slot, dev->func, 0x3C, tmp);
|
||||||
irq_map(irq, ahci_irq_handler);
|
irq_map(irq, ahci_irq_handler);
|
||||||
|
|
||||||
char *buf = kmalloc(512);
|
|
||||||
ahci_access_sectors(&sata_devices[1], 0, 1, (paddr_t)buf & (~hhdm_start), false);
|
|
||||||
buf[511] = 0;
|
|
||||||
printf("AHCI: %s\n", buf);
|
|
||||||
|
|
||||||
memcpy(buf, "Hello, World!", 13);
|
|
||||||
ahci_access_sectors(&sata_devices[1], 0, 1, (paddr_t)buf & (~hhdm_start), true);
|
|
||||||
|
|
||||||
printf(LOG_SUCCESS "AHCI controller ready\n");
|
printf(LOG_SUCCESS "AHCI controller ready\n");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue