From a299be87bc02572d4beb69bac45f77fa1da8dcc9 Mon Sep 17 00:00:00 2001 From: Robbe Van Herck Date: Fri, 3 Jan 2020 13:02:18 +0100 Subject: [PATCH] Leave room for SFS superblock --- bootloader/main.asm | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) 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