From owner-p4-projects@FreeBSD.ORG Thu Feb 1 15:56:17 2007 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 BB3F916A406; Thu, 1 Feb 2007 15:56:17 +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 5C40616A402 for ; Thu, 1 Feb 2007 15:56:17 +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 5060D13C4B6 for ; Thu, 1 Feb 2007 15:56:17 +0000 (UTC) (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 l11FuHiW053997 for ; Thu, 1 Feb 2007 15:56:17 GMT (envelope-from gonzo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l11FuHPm053994 for perforce@freebsd.org; Thu, 1 Feb 2007 15:56:17 GMT (envelope-from gonzo@FreeBSD.org) Date: Thu, 1 Feb 2007 15:56:17 GMT Message-Id: <200702011556.l11FuHPm053994@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 113842 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: Thu, 01 Feb 2007 15:56:18 -0000 http://perforce.freebsd.org/chv.cgi?CH=113842 Change 113842 by gonzo@gonzo_jeeves on 2007/02/01 15:56:14 o Preserve s0 value in stack through function call as ABI requires. Affected files ... .. //depot/projects/mips2/src/lib/libc/mips/sys/sbrk.S#4 edit Differences ... ==== //depot/projects/mips2/src/lib/libc/mips/sys/sbrk.S#4 (text+ko) ==== @@ -55,6 +55,8 @@ .cpload t9 .set reorder #endif + subu sp, sp, 4 + sw s0, 0(sp) lw s0, _C_LABEL(__curbrk) li v0, SYS_break addu a0, a0, s0 # compute current break @@ -62,6 +64,8 @@ bne a3, zero, 1f move v0, s0 # return old val of curbrk from above sw a0, _C_LABEL(__curbrk) # save current val of curbrk from above + lw s0, 0(sp) + addu sp, sp, 4 j ra 1: la t9, _C_LABEL(__cerror)