diff options
| author | Robert Nordier <rnordier@FreeBSD.org> | 1999-06-19 20:40:32 +0000 |
|---|---|---|
| committer | Robert Nordier <rnordier@FreeBSD.org> | 1999-06-19 20:40:32 +0000 |
| commit | 68aadbb9c9064837291b715fb7ad922dc93ace67 (patch) | |
| tree | 6e36d0e7eada473a5dc05657bb1baeb03f33378e | |
| parent | 14de28bd64393b15f9ebfa370ff344a2b1a8903e (diff) | |
Notes
| -rw-r--r-- | sys/boot/i386/mbr/mbr.s | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/boot/i386/mbr/mbr.s b/sys/boot/i386/mbr/mbr.s index 9bdb5d53a4e3..f849fb2a0ab1 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? |
