aboutsummaryrefslogtreecommitdiffstats
path: root/mbr
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-07-11 15:40:44 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-07-11 15:40:44 -0700
commit03fa9f6ac11a5c6d546e2caa3cb07c3aec729a1e (patch)
tree3dbcbd01c0e0745855193cbbcf6bd777682a5cdc /mbr
parent435fa5c5f510616d9490b2c4585d4212ad2edc3a (diff)
downloadlwip-03fa9f6ac11a5c6d546e2caa3cb07c3aec729a1e.tar.gz
lwip-03fa9f6ac11a5c6d546e2caa3cb07c3aec729a1e.tar.xz
lwip-03fa9f6ac11a5c6d546e2caa3cb07c3aec729a1e.zip
MBR: fix pointer to partition table base
Diffstat (limited to 'mbr')
-rw-r--r--mbr/mbr.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbr/mbr.S b/mbr/mbr.S
index 1093d87f..cb8f6dc3 100644
--- a/mbr/mbr.S
+++ b/mbr/mbr.S
@@ -232,11 +232,11 @@ scan_partition_table:
/*
* boot: invoke the actual bootstrap. (%si) points to the partition
- * table entry, and 22(%bp) has the partition table base.
+ * table entry, and 28(%bp) has the partition table base.
*/
boot:
movl 8(%si), %eax
- addl 22(%bp), %eax
+ addl 28(%bp), %eax
movl %eax, 8(%si)
pushw %si
call read_sector