From 0a3a08d6ff45dedf7bcde2020d7d7f7976f7bcd4 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 5 Feb 2020 20:56:12 -0700 Subject: [PATCH] Fall back to sector after bootloader if no partition table is found --- x86_64/partitions.asm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/x86_64/partitions.asm b/x86_64/partitions.asm index 1d9da3572b..af91dfe4fe 100644 --- a/x86_64/partitions.asm +++ b/x86_64/partitions.asm @@ -29,8 +29,6 @@ find_redoxfs_partition: .notfound: mov si, .no_partition_found_msg call print -.halt: - cli - hlt - jmp .halt + mov eax, (startup_end - boot) / 512 + ret .no_partition_found_msg: db "No MBR partition with type 0x83 found", 0xA, 0xD, 0