aboutsummaryrefslogtreecommitdiff
path: root/sys/boot
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2006-09-28 16:30:36 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2006-09-28 16:30:36 +0000
commitadd92b34d1b8c5455bd1f85cf0c38438e5aaf1ef (patch)
tree5f9754e26eb524f2878f960c561b2af3a4f45f33 /sys/boot
parent3fa694fea6926f2c1c723cd62fe8be3510899207 (diff)
Notes
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/i386/btx/btx/btx.S5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/boot/i386/btx/btx/btx.S b/sys/boot/i386/btx/btx/btx.S
index 569ba9d5fb55..7d2ee05e854f 100644
--- a/sys/boot/i386/btx/btx/btx.S
+++ b/sys/boot/i386/btx/btx/btx.S
@@ -208,7 +208,7 @@ init.7: stosl # Set entry
#ifdef PAGING
or $0x80000001,%eax # mode and enable paging
#else
- or $0x01,%eax # mode
+ inc %ax # mode
#endif
mov %eax,%cr0 #
ljmp $SEL_SCODE,$init.8 # To 32-bit code
@@ -919,8 +919,7 @@ dump.2: testb $DMP_MEM,%ch # Dump memory?
dump.3: lodsl # Set offset
xchgl %eax,%edx # Save
lodsl # Get segment
- shll $0x4,%eax # * 0x10
- addl %edx,%eax # + offset
+ leal (%edx,%eax,4),%eax # * 0x10 + offset
xchgl %eax,%esi # Set pointer
dump.4: movb $2,%dl # Num lines
dump.4a: movb $0x10,%cl # Bytes to dump