From 7c7fd36bea1eac4d0fa7bd628a53fff7d2e60917 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Fri, 27 Dec 2019 18:49:11 -0500 Subject: doing iso9660 before gpt, making partition detection expandable --- src/kernel/gpt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/kernel/gpt.c') diff --git a/src/kernel/gpt.c b/src/kernel/gpt.c index 32185eb..39add3a 100644 --- a/src/kernel/gpt.c +++ b/src/kernel/gpt.c @@ -29,10 +29,10 @@ bool gpt_parse_pt(uint8_t dn, uint8_t *buffer) { uint32_t part_entry_size = head->part_size; struct gpt_entry *as_entries = (struct gpt_entry *)buffer; for (uint8_t i = 0; i < pi->n_partitions; ++i) { - if (!(i % 8)) - read_sectors(dn, 2 + i / 4, 2, buffer); - pi->partition_sizes[i] = ((as_entries[i % 8].last_sector + 1) >> 1) - (pi->partition_offsets[i] = ((as_entries[i % 8].sector) >> 1)); - switch (as_entries[i % 8].id.le) { + if (!(i % 16)) + read_sectors(dn, 2 + i / 4, 4, buffer); + pi->partition_sizes[i] = ((as_entries[i % 16].last_sector + 1) >> 1) - (pi->partition_offsets[i] = ((as_entries[i % 16].sector) >> 1)); + switch (as_entries[i % 16].id.le) { //TODO } } -- cgit v1.2.3