Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133023385
D31100.id91953.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D31100.id91953.diff
View Options
Index: stand/i386/pmbr/pmbr.S
===================================================================
--- stand/i386/pmbr/pmbr.S
+++ stand/i386/pmbr/pmbr.S
@@ -114,8 +114,9 @@
main.3: movb $0,%dh # %dh := 0 (reading backup)
movw $DPBUF+DPBUF_SEC,%si # %si = last sector + 1
movw $lba,%di # %di = $lba
-main.3a: decl (%si) # 0x0(%si) = last sec (0-31)
- movw $2,%cx
+main.3a: subl $1, (%si) # 0x0(%si) = last sec (0-31)
+ sbbl $0, 4(%si)
+ movw $4,%cx
rep
movsw # $lastsec--, copy it to $lba
jmp main.2a # Read the next sector
@@ -128,7 +129,7 @@
call read
scan: movw %bx,%si # Compare partition UUID
movw $boot_uuid,%di # with FreeBSD boot UUID
- movb $0x10,%cl
+ movw $0x10,%cx
repe cmpsb
jnz next_part # Didn't match, next partition
#
@@ -150,7 +151,7 @@
jnz next_boot
mov %bx,%es # Reset %es to zero
jmp LOAD # Jump to boot code
-next_boot: incl (%si) # Next LBA
+next_boot: addl (%si) # Next LBA
adcl $0,4(%si)
mov %es,%ax # Adjust segment for next
addw $SECSIZE/16,%ax # sector
@@ -171,7 +172,7 @@
addw %ax,%bx # Next partition
cmpw $PART_ADDR+0x200,%bx # Still in sector?
jb scan
- incl GPT_ADDR+GPT_PART_LBA # Next sector
+ addl GPT_ADDR+GPT_PART_LBA # Next sector
adcl $0,GPT_ADDR+GPT_PART_LBA+4
jmp load_part
#
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 23, 4:13 AM (2 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24081851
Default Alt Text
D31100.id91953.diff (1 KB)
Attached To
Mode
D31100: Fix pmbr issues > 2TB
Attached
Detach File
Event Timeline
Log In to Comment