summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2004-06-22 21:52:20 +0000
committerjhb <jhb@FreeBSD.org>2004-06-22 21:52:20 +0000
commita2fca5d60c51c90368b7a589b9573891d3ffbfed (patch)
tree84e72dabe04634035beacd4be123766cf2f62f98 /sys/boot/i386
parente80fd5cfb6adc73e22533743cdf7c82715e13e36 (diff)
downloadFreeBSD-src-a2fca5d60c51c90368b7a589b9573891d3ffbfed.zip
FreeBSD-src-a2fca5d60c51c90368b7a589b9573891d3ffbfed.tar.gz
Remove a bogus increment of %di when scanning the list of loader paths.
%di will already point to the character after the nul char when the 'repnz scasb' terminates. Submitted by: Tom Cosgrove tom dot cosgrove at arches-consulting dot com
Diffstat (limited to 'sys/boot/i386')
-rw-r--r--sys/boot/i386/cdboot/cdboot.s1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/boot/i386/cdboot/cdboot.s b/sys/boot/i386/cdboot/cdboot.s
index 0b2dd99..51bdd4f 100644
--- a/sys/boot/i386/cdboot/cdboot.s
+++ b/sys/boot/i386/cdboot/cdboot.s
@@ -151,7 +151,6 @@ lookup_path: push %si # Save file name pointer
mov $0xffff,%cx # path name by
repnz # scanning for
scasb # nul char
- inc %di # Skip nul
mov %di,%si # Point %si at next path
mov (%si),%al # Get first char of next path
or %al,%al # Is it double nul?
OpenPOWER on IntegriCloud