From 2bb8ef846e1a309833a1618471164e4c4ce6740a Mon Sep 17 00:00:00 2001 From: TomAwezome Date: Mon, 10 Oct 2022 19:48:36 -0400 Subject: [PATCH] Remove non-functional limine MBR install scripts. --- src/Home/LimineHDD.ZC | 54 ------------------------------------------ src/Home/LimineHDD2.ZC | 40 ------------------------------- 2 files changed, 94 deletions(-) delete mode 100755 src/Home/LimineHDD.ZC delete mode 100755 src/Home/LimineHDD2.ZC diff --git a/src/Home/LimineHDD.ZC b/src/Home/LimineHDD.ZC deleted file mode 100755 index 85e0c6e4..00000000 --- a/src/Home/LimineHDD.ZC +++ /dev/null @@ -1,54 +0,0 @@ - -#include "/Boot/Limine-HDD.HH" - -class CLimineStage2Header -{ - U16 size_a; - U16 size_b; - U32 location_a; - U32 location_b; -} - -DocMax; - -Dump(binary_limine_hdd_bin_data + 0x1A4); - -CLimineStage2Header *limine_stage2 = binary_limine_hdd_bin_data + 0x1A4; - -ClassRep(limine_stage2); - -U16 limine_stage2_size = sizeof(binary_limine_hdd_bin_data) - 512; -U16 limine_stage2_sectors = (limine_stage2_size + (512 - 1)) / 512; -U16 limine_stage2_sectors_size = (limine_stage2_sectors / 2) * 512; - -limine_stage2->size_a = limine_stage2_sectors_size + (512 * (limine_stage2->size_a % 2)); -limine_stage2->size_b = limine_stage2_sectors_size; -limine_stage2->location_a = 512; -limine_stage2->location_b = 512 + limine_stage2->size_a; - -ClassRep(limine_stage2); -Dump(binary_limine_hdd_bin_data + 0x1A4); - -CBlkDev *bd = Letter2BlkDev('c'); - -U8 buffer[2000*16]; -MemSet(buffer, 0, BLK_SIZE); -AHCIAtaBlksRead(bd, buffer, 0, 1); -"\n\n\n\n"; -Dump(buffer, BLK_SIZE); -"\n\n\n\n"; - -MemSet(buffer, 0, BLK_SIZE); -MemCopy(buffer, binary_limine_hdd_bin_data, 512); -MemCopy(buffer + 512, binary_limine_hdd_bin_data + 512, limine_stage2_sectors_size); -MemCopy(buffer + 512 + limine_stage2_sectors_size, binary_limine_hdd_bin_data + 512 + limine_stage2_sectors_size, limine_stage2_sectors_size); -Dump(buffer, 2000*16); -"\n\n\n\n"; -AHCIAtaBlksWrite(bd, buffer, 0, (sizeof(binary_limine_hdd_bin_data)/512) + 4); -MemSet(buffer, 0, BLK_SIZE); -AHCIAtaBlksRead(bd, buffer, 0, 1); -"\n\n\n\n"; -Dump(buffer, BLK_SIZE); -"\n\n\n\n"; - - diff --git a/src/Home/LimineHDD2.ZC b/src/Home/LimineHDD2.ZC deleted file mode 100755 index 134dc329..00000000 --- a/src/Home/LimineHDD2.ZC +++ /dev/null @@ -1,40 +0,0 @@ - -#include "/Boot/Limine-HDD.HH" - -class CLimineStage2Header -{ - U16 size_a; - U16 size_b; - U32 location_a; - U32 location_b; -} - -DocMax; - -Dump(binary_limine_hdd_bin_data + 0x1A4); - -CLimineStage2Header *limine_stage2 = binary_limine_hdd_bin_data + 0x1A4; - -ClassRep(limine_stage2); - -U16 limine_stage2_size_bytes = sizeof(binary_limine_hdd_bin_data) - BLK_SIZE; -U16 limine_stage2_size_remainder = (BLK_SIZE - (limine_stage2_size_bytes % BLK_SIZE)); -U16 limine_stage2_size_aligned = limine_stage2_size_bytes + limine_stage2_size_remainder; - -U16 limine_stage2_size_a = (limine_stage2_size_aligned / 2) + (BLK_SIZE - ((limine_stage2_size_aligned / 2) % BLK_SIZE)); - -limine_stage2->location_a = 512; -limine_stage2->size_a = limine_stage2_size_a; -limine_stage2->location_b = limine_stage2->location_a + limine_stage2->size_a; -limine_stage2->size_b = limine_stage2_size_bytes - limine_stage2->location_b; - -Dump(binary_limine_hdd_bin_data + 0x1A4); -ClassRep(limine_stage2); - -//CBlkDev *bd = Letter2BlkDev('c'); - -U8 buffer[2000*16]; -MemSet(buffer, 0, 2000*16); -MemCopy(buffer, binary_limine_hdd_bin_data, sizeof(binary_limine_hdd_bin_data)); - -AHCIAtaBlksWrite(bd, buffer, 0, limine_stage2_size_aligned / BLK_SIZE); \ No newline at end of file