From 70e040dfcfe15343cb7dc7004acabc146e5b0571 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 11 Apr 2006 17:26:54 +0000 Subject: [PATCH] Use the proper condition to determine that we matched an filename. Otherwise, we could match on a filename that had the wrong last character (such as /boot/loaded instead of /boot/loader). PR: kern/95625 Submitted by: Oliver Fromme MFC after: 1 month --- sys/boot/i386/cdboot/cdboot.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/boot/i386/cdboot/cdboot.s b/sys/boot/i386/cdboot/cdboot.s index 69ac8d43c77..b40752b77a9 100644 --- a/sys/boot/i386/cdboot/cdboot.s +++ b/sys/boot/i386/cdboot/cdboot.s @@ -400,7 +400,7 @@ ff.nextblock: subl $SECTOR_SIZE,rec_size # Adjust size ff.checkname: lea DIR_NAME(%bx),%di # Address name in record push %si # Save repe cmpsb # Compare name - jcxz ff.match # We have a winner! + je ff.match # We have a winner! pop %si # Restore jmp ff.nextrec # Keep looking. ff.match: add $2,%sp # Discard saved %si