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
This commit is contained in:
John Baldwin 2004-06-22 21:52:20 +00:00
parent 100ecbae22
commit 3c077ec681
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130942

View File

@ -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?