summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-02-04 16:52:59 -0800
committerH. Peter Anvin <hpa@zytor.com>2007-02-04 16:52:59 -0800
commit3524223967b08ffdcf7addfc606aaeacd872dac3 (patch)
treeb63429a3cb5b59f13da6aa66c129a342de06fcf5
parent97fe6232e2f5fc3c40e6a455aa5870b789949d96 (diff)
downloadsyslinux-3524223967b08ffdcf7addfc606aaeacd872dac3.tar.gz
MBR: Set %si immediately upon setting %sp
-rw-r--r--mbr/mbr.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbr/mbr.S b/mbr/mbr.S
index edfccfb1..82dc5a6e 100644
--- a/mbr/mbr.S
+++ b/mbr/mbr.S
@@ -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