From owner-p4-projects@FreeBSD.ORG Tue Nov 28 18:22:54 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 20C2D16A4C9; Tue, 28 Nov 2006 18:22:54 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EAA6516A4A0 for ; Tue, 28 Nov 2006 18:22:53 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F05C43D8E for ; Tue, 28 Nov 2006 18:21:29 +0000 (GMT) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kASILLWt047913 for ; Tue, 28 Nov 2006 18:21:21 GMT (envelope-from gonzo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kASILLmH047909 for perforce@freebsd.org; Tue, 28 Nov 2006 18:21:21 GMT (envelope-from gonzo@FreeBSD.org) Date: Tue, 28 Nov 2006 18:21:21 GMT Message-Id: <200611281821.kASILLmH047909@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gonzo@FreeBSD.org using -f From: Oleksandr Tymoshenko To: Perforce Change Reviews Cc: Subject: PERFORCE change 110626 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2006 18:22:54 -0000 http://perforce.freebsd.org/chv.cgi?CH=110626 Change 110626 by gonzo@gonzo_hq on 2006/11/28 18:21:02 o Use s0 instead of v1 to store old curbrk value since v1 is not guaranteed to stay untouched during function calls (and it will be changed after syscall for sure). Affected files ... .. //depot/projects/mips2/src/lib/libc/mips/sys/sbrk.S#3 edit Differences ... ==== //depot/projects/mips2/src/lib/libc/mips/sys/sbrk.S#3 (text+ko) ==== @@ -55,12 +55,12 @@ .cpload t9 .set reorder #endif - lw v1, _C_LABEL(__curbrk) + lw s0, _C_LABEL(__curbrk) li v0, SYS_break - addu a0, a0, v1 # compute current break + addu a0, a0, s0 # compute current break syscall bne a3, zero, 1f - move v0, v1 # return old val of curbrk from above + move v0, s0 # return old val of curbrk from above sw a0, _C_LABEL(__curbrk) # save current val of curbrk from above j ra 1: