aboutsummaryrefslogtreecommitdiffstats
path: root/mbr/mbr.S
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-07-11 16:14:07 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-07-11 16:14:07 -0700
commitc89cafc9e4b08e62f6794425295a99f385d0a47b (patch)
tree9edfab8e3e7f5d570ed50f6667d020edceef5289 /mbr/mbr.S
parent13550911fc71d953d1ca15785f7f7628f7cc69cb (diff)
downloadsyslinux-elf-c89cafc9e4b08e62f6794425295a99f385d0a47b.tar.gz
syslinux-elf-c89cafc9e4b08e62f6794425295a99f385d0a47b.tar.xz
syslinux-elf-c89cafc9e4b08e62f6794425295a99f385d0a47b.zip
Add some comments to the MBR
Diffstat (limited to 'mbr/mbr.S')
-rw-r--r--mbr/mbr.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbr/mbr.S b/mbr/mbr.S
index ecab4e91..854e39bc 100644
--- a/mbr/mbr.S
+++ b/mbr/mbr.S
@@ -218,7 +218,7 @@ scan_partition_table:
call scan_partition_table
11:
/* This returned, so we need to reload the current partition table */
- movl 28(%bp), %eax
+ movl 28(%bp), %eax /* "Base" */
call read_partition_table
/* fall through */
@@ -238,10 +238,10 @@ scan_partition_table:
boot:
movl 8(%si), %eax
addl 28(%bp), %eax
- movl %eax, 8(%si)
+ movl %eax, 8(%si) /* Adjust in-memory partition table entry */
pushw %si
call read_sector
- popw %si
+ popw %si /* ds:si -> partition table entry */
jc disk_error
cmpw $0xaa55, (bootsec+510)
jne missing_os /* Not a valid boot sector */