From owner-svn-src-all@FreeBSD.ORG Mon Nov 28 19:48:04 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 604A4106564A; Mon, 28 Nov 2011 19:48:04 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4FC1E8FC13; Mon, 28 Nov 2011 19:48:04 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pASJm4Mk006151; Mon, 28 Nov 2011 19:48:04 GMT (envelope-from gonzo@svn.freebsd.org) Received: (from gonzo@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pASJm4tc006149; Mon, 28 Nov 2011 19:48:04 GMT (envelope-from gonzo@svn.freebsd.org) Message-Id: <201111281948.pASJm4tc006149@svn.freebsd.org> From: Oleksandr Tymoshenko Date: Mon, 28 Nov 2011 19:48:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r228091 - head/sys/mips/mips X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2011 19:48:04 -0000 Author: gonzo Date: Mon Nov 28 19:48:04 2011 New Revision: 228091 URL: http://svn.freebsd.org/changeset/base/228091 Log: - Fix backtrace for MIPS64 platform Modified: head/sys/mips/mips/db_trace.c Modified: head/sys/mips/mips/db_trace.c ============================================================================== --- head/sys/mips/mips/db_trace.c Mon Nov 28 19:45:47 2011 (r228090) +++ head/sys/mips/mips/db_trace.c Mon Nov 28 19:48:04 2011 (r228091) @@ -30,7 +30,7 @@ extern char edata[]; /* * A function using a stack frame has the following instruction as the first - * one: addiu sp,sp,- + * one: [d]addiu sp,sp,- * * We make use of this to detect starting address of a function. This works * better than using 'j ra' instruction to signify end of the previous @@ -39,7 +39,8 @@ extern char edata[]; * * XXX the abi does not require that the addiu instruction be the first one. */ -#define MIPS_START_OF_FUNCTION(ins) (((ins) & 0xffff8000) == 0x27bd8000) +#define MIPS_START_OF_FUNCTION(ins) ((((ins) & 0xffff8000) == 0x27bd8000) \ + || (((ins) & 0xffff8000) == 0x67bd8000)) /* * MIPS ABI 3.0 requires that all functions return using the 'j ra' instruction @@ -329,6 +330,8 @@ loop: case OP_ADDI: case OP_ADDIU: + case OP_DADDI: + case OP_DADDIU: /* look for stack pointer adjustment */ if (i.IType.rs != 29 || i.IType.rt != 29) break;