Make more adjustments to padding to match padding from before MBR change

This commit is contained in:
Jeremy Soller
2020-02-06 19:40:42 -07:00
parent 1b02aebde2
commit 60b87c4477
2 changed files with 11 additions and 8 deletions
+10 -7
View File
@@ -10,7 +10,7 @@ startup_start:
%ifdef ARCH_x86_64
%include "startup-x86_64.asm"
%endif
align BLOCK_SIZE, db 0
align 512, db 0
startup_end:
%ifdef KERNEL
@@ -18,13 +18,16 @@ startup_end:
%defstr KERNEL_STR %[KERNEL]
incbin KERNEL_STR
.end:
align BLOCK_SIZE, db 0
align 512, db 0
%else
align BLOCK_SIZE, db 0
%ifdef FILESYSTEM
filesystem:
%defstr FILESYSTEM_STR %[FILESYSTEM]
incbin FILESYSTEM_STR
.end:
align BLOCK_SIZE, db 0
filesystem:
%defstr FILESYSTEM_STR %[FILESYSTEM]
incbin FILESYSTEM_STR
.end:
align BLOCK_SIZE, db 0
%else
filesystem:
%endif
%endif
+1 -1
View File
@@ -29,6 +29,6 @@ find_redoxfs_partition:
.notfound:
mov si, .no_partition_found_msg
call print
mov eax, (startup_end - boot) / 512
mov eax, (filesystem - boot) / 512
ret
.no_partition_found_msg: db "No MBR partition with type 0x83 found", 0xA, 0xD, 0