diff --git a/bootloader/main.asm b/bootloader/main.asm index 3b543ad..384f3e6 100644 --- a/bootloader/main.asm +++ b/bootloader/main.asm @@ -293,13 +293,19 @@ jmp .end .invalid_elf: mov byte [ds:0x0B8000], 'E' -mov byte [ds:0x0B8001], 0x40 mov byte [ds:0x0B8002], 'L' -mov byte [ds:0x0B8003], 0x40 mov byte [ds:0x0B8004], 'F' -mov byte [ds:0x0B8005], 0x40 jmp .end +; padding for bootloader - SFS superblock +times 404 - ($ - $$) db 0 + +; room for SFS superblock +times 42 db 0 + +; padding for SFS superblock - data +times 66 - (.file_end - .data) db 0 + .data: .gdt: @@ -327,8 +333,7 @@ dd .gdt .entrypoint: dd 0 -; print padding nullbytes -times 510 - ($ - $$) db 0 +; magic string +dw 0xAA55 -; write magic string -dw 0xAA55 \ No newline at end of file +.file_end: \ No newline at end of file