diff --git a/boot/kernel.asm b/boot/kernel.asm index 4f5fd03..7b82cf0 100644 --- a/boot/kernel.asm +++ b/boot/kernel.asm @@ -154,13 +154,6 @@ getint: xor bx, bx sferr: stc ret -bpb: times bpb_len db 0 -drvnum: db 0 - align 4 -drvoff: dd 0 ; partition offset -drvpos: dd 0 ; absolute physical sector number -buffer: times 512 db 0 - ; Convert between drive number and BIOS dl ; Bidirectional mapping ; 0 <-> 0, 1 <-> 1, 2 <-> 0x80, 3 <-> 0x81 @@ -300,3 +293,12 @@ ivects: dw int20h, int21h, iret, iret dw iret, iret, iret, iret dw idle, fputc, iret, iret dw iret, iret, iret, iret + +section .bss +bpb: times bpb_len resb 0 +drvnum: resb 0 + align 4 +drvoff: resd 0 ; partition offset +drvpos: resd 0 ; absolute physical sector number +buffer: times 512 resb 0 +