From 93109ad26f17e9cc2a64f0a4f430b880bee14405 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 16 Mar 2025 10:53:33 +0100 Subject: AHCI.cc: FIX: Avoid looking on DMA directly. --- dev/Kernel/HALKit/AMD64/Storage/AHCI+Generic.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dev') diff --git a/dev/Kernel/HALKit/AMD64/Storage/AHCI+Generic.cc b/dev/Kernel/HALKit/AMD64/Storage/AHCI+Generic.cc index c9d2d9df..d6556165 100644 --- a/dev/Kernel/HALKit/AMD64/Storage/AHCI+Generic.cc +++ b/dev/Kernel/HALKit/AMD64/Storage/AHCI+Generic.cc @@ -242,6 +242,7 @@ STATIC Bool drv_std_init_ahci(UInt16& pi, BOOL atapi) UInt16 ahci_index = 0; kSATAPortsImplemented = ports_implemented; + pi = kSATAPortsImplemented; const UInt16 kMaxPortsImplemented = kSATAPortCnt; const UInt32 kSATASignature = kSATASig; @@ -300,8 +301,6 @@ STATIC Bool drv_std_init_ahci(UInt16& pi, BOOL atapi) ++ahci_index; } - pi = mem_ahci->Pi; - return YES; } } -- cgit v1.2.3