From df419bc6417e98d532e333de6d96ed6669885e97 Mon Sep 17 00:00:00 2001 From: TomAwezome Date: Mon, 10 Oct 2022 21:04:19 -0400 Subject: [PATCH] Make LimineHDD install script functional by fixing bad block count argument passed to AHCI write function. --- src/Home/LimineHDD.ZC | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Home/LimineHDD.ZC b/src/Home/LimineHDD.ZC index 1827eebc..fb601687 100755 --- a/src/Home/LimineHDD.ZC +++ b/src/Home/LimineHDD.ZC @@ -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);