; ends at 5000h
SuperBlock resb 1024 ; ext2 superblock
-SuperInfo resd 16 ; DOS superblock expanded
+SuperInfo resq 16 ; DOS superblock expanded
ClustSize resd 1 ; Bytes/cluster ("block")
SecPerClust resd 1 ; Sectors/cluster
ClustMask resd 1 ; Sectors/cluster - 1
;
; We have EDD support...
;
- mov byte [getlinsec+1],getlinsec_ebios-(getlinsec+2)
+ mov byte [getlinsec.jmp+1],getlinsec_ebios-(getlinsec.jmp+2)
.noedd:
;
; the order to dst,src to keep things sane.
;
getlinsec:
- jmp strict short getlinsec_cbios ; This is patched
+ add eax,[bsHidden] ; Add partition offset
+.jmp: jmp strict short getlinsec_cbios ; This is patched
;
; getlinsec_ebios:
; the order to dst,src to keep things sane.
;
getlinsec:
+ add eax,[bsHidden] ; Add partition offset
jmp strict short getlinsec_cbios ; This is patched
;
.have_secs:
mov [TotalSectors],edx
- mov eax,[bsHidden] ; Hidden sectors aren't included
add edx,eax
mov [EndSector],edx