From 546f9b44cde51f172aaf5cf87c7959927500d753 Mon Sep 17 00:00:00 2001 From: simonb Date: Fri, 22 Apr 2005 06:59:00 +0000 Subject: [PATCH] Branch to a local symbol instead of a global symbol. --- lib/libc/arch/mips/string/index.S | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/libc/arch/mips/string/index.S b/lib/libc/arch/mips/string/index.S index dce375cd1a50..b377e10bc23e 100644 --- a/lib/libc/arch/mips/string/index.S +++ b/lib/libc/arch/mips/string/index.S @@ -1,4 +1,4 @@ -/* $NetBSD: index.S,v 1.7 2003/08/07 16:42:16 agc Exp $ */ +/* $NetBSD: index.S,v 1.8 2005/04/22 06:59:00 simonb Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -36,7 +36,7 @@ #if defined(LIBC_SCCS) && !defined(lint) ASMSTR("from: @(#)index.s 8.1 (Berkeley) 6/4/93") - ASMSTR("$NetBSD: index.S,v 1.7 2003/08/07 16:42:16 agc Exp $") + ASMSTR("$NetBSD: index.S,v 1.8 2005/04/22 06:59:00 simonb Exp $") #endif /* LIBC_SCCS and not lint */ #ifdef __ABICALLS__ @@ -44,10 +44,11 @@ #endif LEAF(index) +1: lbu a2, 0(a0) # get a byte addu a0, a0, 1 beq a2, a1, fnd - bne a2, zero, _C_LABEL(index) + bne a2, zero, 1b notfnd: move v0, zero j ra