From 3c077ec681b788bf6f6ce082860fddc3a426f8bc Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 22 Jun 2004 21:52:20 +0000 Subject: [PATCH] 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 --- sys/boot/i386/cdboot/cdboot.s | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/boot/i386/cdboot/cdboot.s b/sys/boot/i386/cdboot/cdboot.s index 0b2dd9919786..51bdd4f9bb63 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?