diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-07-11 16:41:52 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-07-11 16:41:52 -0700 |
commit | d9139b2f937aac9b6ee08cc79da35afde4d832b4 (patch) | |
tree | f28761077835a5a066c8ccf36f991ad6573cf795 /mbr | |
parent | 6723c3226ef2394c2fc52b8b2754181ca578cf33 (diff) | |
download | syslinux-d9139b2f937aac9b6ee08cc79da35afde4d832b4.tar.gz |
MBR: Handle the stack in read_sector correctly...
Diffstat (limited to 'mbr')
-rw-r--r-- | mbr/mbr.S | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -111,7 +111,7 @@ next: */ read_sector: pushal - movw %sp, %si + movw %sp, %bp xorl %edx, %edx movw $bootsec, %bx read_sector_cbios: @@ -133,11 +133,12 @@ read_sector_ebios: pushw %bx /* Buffer offset */ pushw $1 /* Sector count */ pushw $16 /* Size of packet */ + movw %sp, %si movb $0x42, %ah read_common: movb (driveno), %dl int $0x13 - movw %si, %sp + movw %bp, %sp popal ret |