mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-26 07:20:32 +00:00
Merge pull request #147 from Zeal-Operating-System/sata-fix
Fix SATA issue described in issue #139. Fixes #139
This commit is contained in:
commit
12b2c37233
3 changed files with 3 additions and 0 deletions
BIN
build/AUTO.ISO
BIN
build/AUTO.ISO
Binary file not shown.
|
@ -73,6 +73,8 @@ then
|
||||||
git fetch
|
git fetch
|
||||||
git remote set-head origin $LIMINE_BINARY_BRANCH
|
git remote set-head origin $LIMINE_BINARY_BRANCH
|
||||||
git switch $LIMINE_BINARY_BRANCH
|
git switch $LIMINE_BINARY_BRANCH
|
||||||
|
git config --local pull.ff true
|
||||||
|
git config --local pull.rebase true
|
||||||
git pull
|
git pull
|
||||||
rm limine
|
rm limine
|
||||||
|
|
||||||
|
|
|
@ -286,6 +286,7 @@ I64 AHCIAtapiCapacityGet(CBlkDev *bd)
|
||||||
cmd_fis->type = FISt_H2D;
|
cmd_fis->type = FISt_H2D;
|
||||||
PCIBts(&cmd_fis->desc, AHCI_CF_DESCf_C); //Set Command bit in H2D FIS.
|
PCIBts(&cmd_fis->desc, AHCI_CF_DESCf_C); //Set Command bit in H2D FIS.
|
||||||
cmd_fis->command = ATA_PACKET;
|
cmd_fis->command = ATA_PACKET;
|
||||||
|
cmd_fis->lba1 = 8;
|
||||||
cmd_table->acmd[0] = ATAPI_READ_CAPACITY >> 8;
|
cmd_table->acmd[0] = ATAPI_READ_CAPACITY >> 8;
|
||||||
|
|
||||||
AHCIPortWait(bd->port_num, tS + 2);
|
AHCIPortWait(bd->port_num, tS + 2);
|
||||||
|
|
Loading…
Reference in a new issue