mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-27 15:56:30 +00:00
Add AHCI GHC.AE debug check with both & and Bt.
This commit is contained in:
parent
004f762b26
commit
27193fe5e0
1 changed files with 2 additions and 0 deletions
|
@ -1169,6 +1169,8 @@ U0 AHCIInit()
|
||||||
|
|
||||||
Bts(&blkdev.ahci_hba->ghc, AHCI_GHCf_AHCI_ENABLE);
|
Bts(&blkdev.ahci_hba->ghc, AHCI_GHCf_AHCI_ENABLE);
|
||||||
"AHCI: GHC.AE set\n";
|
"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.
|
//Transferring ownership from BIOS if supported.
|
||||||
if (Bt(&hba->caps_ext, AHCI_CAPSEXTf_BOH))
|
if (Bt(&hba->caps_ext, AHCI_CAPSEXTf_BOH))
|
||||||
|
|
Loading…
Reference in a new issue