summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/mbr
diff options
context:
space:
mode:
authorrnordier <rnordier@FreeBSD.org>1999-06-19 20:40:32 +0000
committerrnordier <rnordier@FreeBSD.org>1999-06-19 20:40:32 +0000
commit5f25113ddbd88d3d21cd829269b9676c78bbaade (patch)
treea9a3e7b012e8ff24d14dcd67ce9476248a2d56e1 /sys/boot/i386/mbr
parent1daacd7eaafe3c64ff231732d0fdc13b805a586c (diff)
downloadFreeBSD-src-5f25113ddbd88d3d21cd829269b9676c78bbaade.zip
FreeBSD-src-5f25113ddbd88d3d21cd829269b9676c78bbaade.tar.gz
Correct and clarify some comments.
Diffstat (limited to 'sys/boot/i386/mbr')
-rw-r--r--sys/boot/i386/mbr/mbr.s14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/boot/i386/mbr/mbr.s b/sys/boot/i386/mbr/mbr.s
index 9bdb5d5..f849fb2 100644
--- a/sys/boot/i386/mbr/mbr.s
+++ b/sys/boot/i386/mbr/mbr.s
@@ -13,7 +13,7 @@
# purpose.
#
-# $Id: $
+# $Id: mbr.s,v 1.1.1.1 1999/05/24 22:36:24 rnordier Exp $
# Master boot record
@@ -36,20 +36,20 @@ start: cld # String ops inc
sti # Enable interrupts
movwir(main-EXEC+LOAD,_si) # Source
movwir(main,_di) # Destination
- movwir(0x200-(main-start),_cx) # Word count
+ movwir(0x200-(main-start),_cx) # Byte count
rep # Relocate
movsb # code
jmpnwi(main-LOAD+EXEC) # To relocated code
-main: xorl %esi,%esi # No active found
+main: xorl %esi,%esi # No active partition
movwir(partbl,_bx) # Partition table
- movb $0x4,%cl # Entries
+ movb $0x4,%cl # Number of entries
main.1: cmpbr0(_ch,_bx_) # Null entry?
je main.2 # Yes
- jg err_pt # If bit 7 unset
- testl %esi,%esi # Active found?
+ jg err_pt # If 0x1..0x7f
+ testl %esi,%esi # Active already found?
jnz err_pt # Yes
- movl %ebx,%esi # Keep place
+ movl %ebx,%esi # Point to active
main.2: addb $0x10,%bl # Till
loop main.1 # done
testl %esi,%esi # Active found?
OpenPOWER on IntegriCloud