diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-02-04 16:52:59 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-02-04 16:52:59 -0800 |
commit | 3524223967b08ffdcf7addfc606aaeacd872dac3 (patch) | |
tree | b63429a3cb5b59f13da6aa66c129a342de06fcf5 | |
parent | 97fe6232e2f5fc3c40e6a455aa5870b789949d96 (diff) | |
download | syslinux-3524223967b08ffdcf7addfc606aaeacd872dac3.tar.gz |
MBR: Set %si immediately upon setting %sp
-rw-r--r-- | mbr/mbr.S | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -43,6 +43,7 @@ _start: movw %ax, %ds movw %ax, %ss movw $stack, %sp + movw %sp, %si pushw %es /* es:di -> $PnP header */ pushw %di pushw %dx /* dl -> drive number */ @@ -51,7 +52,6 @@ _start: cld /* Copy down to 0:0x600 */ - movw %sp, %si movw $_start, %di movw $(512/2), %cx rep; movsw |