Skip to content
Snippets Groups Projects
Verified Commit 60b87c44 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

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

parent 1b02aebd
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ startup_start: ...@@ -10,7 +10,7 @@ startup_start:
%ifdef ARCH_x86_64 %ifdef ARCH_x86_64
%include "startup-x86_64.asm" %include "startup-x86_64.asm"
%endif %endif
align BLOCK_SIZE, db 0 align 512, db 0
startup_end: startup_end:
%ifdef KERNEL %ifdef KERNEL
...@@ -18,13 +18,16 @@ startup_end: ...@@ -18,13 +18,16 @@ startup_end:
%defstr KERNEL_STR %[KERNEL] %defstr KERNEL_STR %[KERNEL]
incbin KERNEL_STR incbin KERNEL_STR
.end: .end:
align BLOCK_SIZE, db 0 align 512, db 0
%else %else
align BLOCK_SIZE, db 0
%ifdef FILESYSTEM %ifdef FILESYSTEM
filesystem: filesystem:
%defstr FILESYSTEM_STR %[FILESYSTEM] %defstr FILESYSTEM_STR %[FILESYSTEM]
incbin FILESYSTEM_STR incbin FILESYSTEM_STR
.end: .end:
align BLOCK_SIZE, db 0 align BLOCK_SIZE, db 0
%else
filesystem:
%endif %endif
%endif %endif
...@@ -29,6 +29,6 @@ find_redoxfs_partition: ...@@ -29,6 +29,6 @@ find_redoxfs_partition:
.notfound: .notfound:
mov si, .no_partition_found_msg mov si, .no_partition_found_msg
call print call print
mov eax, (startup_end - boot) / 512 mov eax, (filesystem - boot) / 512
ret ret
.no_partition_found_msg: db "No MBR partition with type 0x83 found", 0xA, 0xD, 0 .no_partition_found_msg: db "No MBR partition with type 0x83 found", 0xA, 0xD, 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment