From owner-freebsd-sparc64@FreeBSD.ORG Sun Jan 25 06:55:40 2004 Return-Path: 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 A05CF16A4CE for ; Sun, 25 Jan 2004 06:55:40 -0800 (PST) Received: from mailhub.fokus.fraunhofer.de (mailhub.fokus.fraunhofer.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id F20DE43D1D for ; Sun, 25 Jan 2004 06:55:38 -0800 (PST) (envelope-from brandt@fokus.fraunhofer.de) Received: from beagle (beagle [193.175.132.100])i0PEtWL21058; Sun, 25 Jan 2004 15:55:33 +0100 (MET) Date: Sun, 25 Jan 2004 15:55:32 +0100 (CET) From: Harti Brandt To: Ken Smith In-Reply-To: <20040125055947.GA12258@electra.cse.Buffalo.EDU> Message-ID: <20040125155351.X18713@beagle.fokus.fraunhofer.de> References: <6.0.1.1.2.20040124173355.027d4508@mail.firetide.com> <20040125055947.GA12258@electra.cse.Buffalo.EDU> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: David Cornejo cc: freebsd-sparc64@freebsd.org Subject: Re: fix for undefined symbol 'panic' X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jan 2004 14:55:40 -0000 On Sun, 25 Jan 2004, Ken Smith wrote: KS>On Sat, Jan 24, 2004 at 05:35:22PM -1000, David Cornejo wrote: KS>> I think this is the fix. KS>> KS>> in directory /usr/src/sys/sparc64/include KS>> KS>> *** asmacros.h~ Tue Jul 15 14:08:43 2003 KS>> --- asmacros.h Sat Jan 24 11:27:26 2004 KS>> *************** KS>> *** 102,108 **** KS>> 9: .asciz msg ; \ KS>> .previous ; \ KS>> SET(9b, r1, %o0) ; \ KS>> ! call panic ; \ KS>> nop KS>> KS>> #ifdef INVARIANTS KS>> --- 102,108 ---- KS>> 9: .asciz msg ; \ KS>> .previous ; \ KS>> SET(9b, r1, %o0) ; \ KS>> ! call __panic ; \ KS>> nop KS>> KS>> #ifdef INVARIANTS KS> KS>Looks like this is correct. Is there someone else "around" who KS>normally takes care of this sort of thing or should I take care KS>of it? The fix is wrong, I think, because __panic now takes three arguments. I wrote phk a couple of days ago, but nothing happend so far. We could do the equivalent of __panic(str, NULL, 0), or try to get the filename and linenumber correct. But this is where my sparc asm foo stops. harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fraunhofer.de, harti@freebsd.org