Add AHCI GHC.AE debug check with both & and Bt.

This commit is contained in:
TomAwezome 2022-10-07 18:54:56 -04:00
parent 004f762b26
commit 27193fe5e0

View file

@ -1169,6 +1169,8 @@ U0 AHCIInit()
Bts(&blkdev.ahci_hba->ghc, AHCI_GHCf_AHCI_ENABLE);
"AHCI: GHC.AE set\n";
"AHCI: GHC.AE value confirm with &: %d\n", blkdev.ahci_hba->ghc & (1 << AHCI_GHCf_AHCI_ENABLE);
"AHCI: GHC.AE value confirm with Bt(): %d\n", Bt(&blkdev.ahci_hba->ghc, AHCI_GHCf_AHCI_ENABLE);
//Transferring ownership from BIOS if supported.
if (Bt(&hba->caps_ext, AHCI_CAPSEXTf_BOH))