Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167816389
D8929.id23311.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
911 B
Referenced Files
None
Subscribers
None
D8929.id23311.diff
View Options
Index: sys/boot/i386/btx/btxldr/btxldr.S
===================================================================
--- sys/boot/i386/btx/btxldr/btxldr.S
+++ sys/boot/i386/btx/btxldr/btxldr.S
@@ -198,10 +198,9 @@
call putstr # message
movl $m_segs,%esi # Format string
#endif
- movl $0x2,%edi # Segment count
movl 0x1c(%ebx),%edx # Get e_phoff
addl %ebx,%edx # To pointer
- movzwl 0x2c(%ebx),%ecx # Get e_phnum
+ movzwl 0x2c(%ebx),%edi # Get e_phnum
start.4: cmpl $0x1,(%edx) # Is p_type PT_LOAD?
jne start.6 # No
#ifdef BTXLDR_VERBOSE
@@ -234,9 +233,9 @@
start.5: popl %ecx # Restore
popl %edi # working
popl %esi # registers
- decl %edi # Segments to do
+start.6: decl %edi # Segments to do
je start.7 # If none
-start.6: addl $0x20,%edx # To next entry
+ addl $0x20,%edx # To next entry
loop start.4 # Till done
start.7:
#ifdef BTXLDR_VERBOSE
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 25, 6:33 PM (7 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37245613
Default Alt Text
D8929.id23311.diff (911 B)
Attached To
Mode
D8929: btxldr: process all PT_LOAD segments, not just the first two
Attached
Detach File
Event Timeline
Log In to Comment