diff options
author | hpa <hpa> | 2004-12-22 07:14:15 +0000 |
---|---|---|
committer | hpa <hpa> | 2004-12-22 07:14:15 +0000 |
commit | 193a6862aa1c78969d8ace9cecbe948ae47b65f8 (patch) | |
tree | 7feabd14796c116d6a7f1a34345aae5b408ce3e6 /extlinux.asm | |
parent | 29cfb114e2fd9a748ba92df04c6c958088ab49a1 (diff) | |
download | syslinux-193a6862aa1c78969d8ace9cecbe948ae47b65f8.tar.gz |
Handle partition offset
Diffstat (limited to 'extlinux.asm')
-rw-r--r-- | extlinux.asm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/extlinux.asm b/extlinux.asm index 0fa73f0a..0849ebff 100644 --- a/extlinux.asm +++ b/extlinux.asm @@ -114,7 +114,7 @@ getcbuf resb trackbufsize ; 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 @@ -317,7 +317,7 @@ eddcheck: ; ; We have EDD support... ; - mov byte [getlinsec+1],getlinsec_ebios-(getlinsec+2) + mov byte [getlinsec.jmp+1],getlinsec_ebios-(getlinsec.jmp+2) .noedd: ; @@ -411,7 +411,8 @@ getonesec: ; 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: |