From owner-freebsd-sparc64@FreeBSD.ORG Mon Feb 13 18:36:16 2006 Return-Path: X-Original-To: freebsd-sparc64@freebsd.org Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5D7F16A420; Mon, 13 Feb 2006 18:36:16 +0000 (GMT) (envelope-from antoine@peanut.dreadbsd.org) Received: from barton.dreadbsd.org (peanut.dreadbsd.org [82.67.196.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id D370143D6D; Mon, 13 Feb 2006 18:36:15 +0000 (GMT) (envelope-from antoine@peanut.dreadbsd.org) Received: from barton.dreadbsd.org (localhost [127.0.0.1]) by barton.dreadbsd.org (8.13.4/8.13.4) with ESMTP id k1DIaEuQ012663; Mon, 13 Feb 2006 19:36:14 +0100 (CET) (envelope-from antoine@peanut.dreadbsd.org) Received: (from antoine@localhost) by barton.dreadbsd.org (8.13.4/8.13.1/Submit) id k1DIaDI0012662; Mon, 13 Feb 2006 19:36:13 +0100 (CET) (envelope-from antoine) Date: Mon, 13 Feb 2006 19:36:13 +0100 From: Antoine Brodin To: John Baldwin Message-Id: <20060213193613.547d1b8f.antoine.brodin@laposte.net> In-Reply-To: <200602131223.51561.jhb@freebsd.org> References: <200602131150.k1DBo6S1074438@freefall.freebsd.org> <200602131223.51561.jhb@freebsd.org> X-Mailer: Sylpheed version 2.0.4 (GTK+ 2.8.12; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-sparc64@freebsd.org Subject: Re: sparc64/93226: DEBUG_LOCKS (really stack_save()) causes panics on sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2006 18:36:17 -0000 John Baldwin wrote: > If there are kernel functions before the assembly ones (dependent on link > order) then this would wrongly bail when it hit those. I think you need to > do what the ddb stack tracing code does which is to lookup the symbol name > and do a bcmp() on the first 4 chars to recognize trapframes. I ran objdump -d on a sparc64 kernel and it looks like tl0_* and tl1_* are always at the beginning of the code, there is some kind of magic. Cheers, Antoine