Add entrypoint to rust mammoth.

This commit is contained in:
Drew Galbraith 2024-07-26 14:44:05 -07:00
parent d6833be0ad
commit 40a50e8d00
5 changed files with 75 additions and 7 deletions

View file

@ -72,9 +72,10 @@ glcr::Status GptReader::ParsePartitionTables() {
}
MbrPartition* first_partition =
reinterpret_cast<MbrPartition*>(lba_1_and_2.vaddr() + 0x1BE);
if (first_partition->boot_indicator != 0) {
return glcr::FailedPrecondition(glcr::StrFormat(
"Boot indicator set: {}", first_partition->boot_indicator));
// FIXME: This shouldn't be set but I can't figure out why it is.
dbgln("WARN: Boot indicator set: {}", first_partition->boot_indicator);
}
if (first_partition->os_type != 0xEE) {
return glcr::FailedPrecondition(