From owner-p4-projects@FreeBSD.ORG Wed Nov 22 16:12:34 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 2CA7E16A417; Wed, 22 Nov 2006 16:12:34 +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 E393C16A407 for ; Wed, 22 Nov 2006 16:12:33 +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 9F5FD43D6B for ; Wed, 22 Nov 2006 16:12:03 +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 kAMGCWPr092486 for ; Wed, 22 Nov 2006 16:12:32 GMT (envelope-from gonzo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kAMGCWTd092481 for perforce@freebsd.org; Wed, 22 Nov 2006 16:12:32 GMT (envelope-from gonzo@FreeBSD.org) Date: Wed, 22 Nov 2006 16:12:32 GMT Message-Id: <200611221612.kAMGCWTd092481@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 110394 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: Wed, 22 Nov 2006 16:12:34 -0000 http://perforce.freebsd.org/chv.cgi?CH=110394 Change 110394 by gonzo@gonzo_hq on 2006/11/22 16:12:27 o __start arguments (argc/argv/env) are located right on stack pointer. Affected files ... .. //depot/projects/mips2/src/lib/csu/mips/crt1.c#3 edit Differences ... ==== //depot/projects/mips2/src/lib/csu/mips/crt1.c#3 (text+ko) ==== @@ -81,13 +81,13 @@ " _start: \n" " /* Get argc, argv from stack */ \n" " \n" -" /* lw a0, -32(sp) */\n" +" /* lw a0, 0(sp) */\n" " /* move a1, sp */\n" -" /* addu a1, 32 + 4 */\n" +" /* addu a1, 4 */\n" " \n" -" lw $4, -32($29) \n" +" lw $4, 0($29) \n" " move $5, $29 \n" -" addu $5, 36 \n" +" addu $5, 4 \n" " /* TODO: Ensure the stack is properly aligned before calling C code. */\n" "\n" " j __start ");