mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 23:10:32 +00:00
Make LimineHDD install script functional by fixing bad block count argument passed to AHCI write function.
This commit is contained in:
parent
7486ab0b0d
commit
df419bc641
1 changed files with 2 additions and 2 deletions
|
@ -28,6 +28,6 @@ AHCIAtaBlksRead(bd, &old_mbr, 0, 1); // read old MBR currently on disk
|
|||
|
||||
MemCopy(new_mbr->p, old_mbr.p, sizeof(CMasterBoot.p)); // copy old MBR partition table to new Limine MBR
|
||||
|
||||
AHCIAtaBlksWrite(bd, limine, 0, 1 + limine_stage2_size_aligned); // write Limine to MBR and post-MBR gap
|
||||
AHCIAtaBlksWrite(bd, limine, 0, 1 + (limine_stage2_size_aligned / BLK_SIZE)); // write Limine to MBR and post-MBR gap
|
||||
|
||||
BlkDevUnlock(bd);
|
||||
BlkDevUnlock(bd);
|
||||
|
|
Loading…
Reference in a new issue