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
1 changed files with 12 additions and 7 deletions

View File

@ -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
.file_end: