diff options
author | Ian Moffett <ian@osmora.org> | 2025-06-14 00:32:11 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-06-14 00:32:11 -0400 |
commit | 115be63f63535c98aa44d0aa7417c0f151ed67b0 (patch) | |
tree | 809c435bb6383508916a508a563dd3d467532b51 /sys/dev | |
parent | a9fb11245f3ccc422089ed60a1ce57b7cb2d1c2a (diff) |
kernel: ahci: Don't zero allocated PAs anymoremain
This is no longer needed as the Hyra PMM now does this automatically by
default.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/ahci.c | 3 |
1 files changed, 0 insertions, 3 deletions
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); |