From 115be63f63535c98aa44d0aa7417c0f151ed67b0 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 14 Jun 2025 00:32:11 -0400 Subject: kernel: ahci: Don't zero allocated PAs anymore This is no longer needed as the Hyra PMM now does this automatically by default. Signed-off-by: Ian Moffett --- sys/dev/ic/ahci.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'sys/dev/ic') diff --git a/sys/dev/ic/ahci.c b/sys/dev/ic/ahci.c index 7d89dd3..d8d4a6f 100644 --- a/sys/dev/ic/ahci.c +++ b/sys/dev/ic/ahci.c @@ -806,8 +806,6 @@ ahci_init_port(struct ahci_hba *hba, uint32_t portno) } dp->fra = PHYS_TO_VIRT(fra); - memset(dp->cmdlist, 0, clen * pagesz); - memset(dp->fra, 0, pagesz); /* Write the command list */ lo = cmdlist & 0xFFFFFFFF; @@ -826,7 +824,6 @@ ahci_init_port(struct ahci_hba *hba, uint32_t portno) tmp = vm_alloc_frame(1); dp->cmdlist[i].prdtl = 1; dp->cmdlist[i].ctba = tmp; - memset(PHYS_TO_VIRT(tmp), 0, pagesz); } mmio_write32(&port->serr, 0xFFFFFFFF); -- cgit v1.2.3