Leave room for SFS superblock

This commit is contained in:
Robbe Van Herck 2020-01-03 13:02:18 +01:00
parent 4f1beb7647
commit a299be87bc
No known key found for this signature in database
GPG key ID: A66F76F7B81BD784

View file

@ -293,13 +293,19 @@ jmp .end
.invalid_elf: .invalid_elf:
mov byte [ds:0x0B8000], 'E' mov byte [ds:0x0B8000], 'E'
mov byte [ds:0x0B8001], 0x40
mov byte [ds:0x0B8002], 'L' mov byte [ds:0x0B8002], 'L'
mov byte [ds:0x0B8003], 0x40
mov byte [ds:0x0B8004], 'F' mov byte [ds:0x0B8004], 'F'
mov byte [ds:0x0B8005], 0x40
jmp .end 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: .data:
.gdt: .gdt:
@ -327,8 +333,7 @@ dd .gdt
.entrypoint: dd 0 .entrypoint: dd 0
; print padding nullbytes ; magic string
times 510 - ($ - $$) db 0 dw 0xAA55
; write magic string .file_end:
dw 0xAA55