From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1E7TYj-0007NV-TW for mharc-grub-devel@gnu.org; Tue, 23 Aug 2005 03:51:02 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E7TYR-0007LS-6E for grub-devel@gnu.org; Tue, 23 Aug 2005 03:50:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E7TYC-0007Iu-SZ for grub-devel@gnu.org; Tue, 23 Aug 2005 03:50:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E7TY9-0007EP-T1 for grub-devel@gnu.org; Tue, 23 Aug 2005 03:50:26 -0400 Received: from [217.12.11.32] (helo=smtp001.mail.ukl.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1E7TV4-00066T-J6 for grub-devel@gnu.org; Tue, 23 Aug 2005 03:47:15 -0400 Received: (qmail 98286 invoked from network); 23 Aug 2005 07:46:25 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Received:Message-ID:Date:From:User-Agent:X-Accept-Language:MIME-Version:To:Subject:References:In-Reply-To:X-Enigmail-Version:Content-Type:Content-Transfer-Encoding; b=oU2n3kLxMO6rs41gmN50QVPHIq6+l3YergTbjKiQsKx6f3FZXY3BJM5j19eqYkoflOLQlCI011HZ9XT+rNpjXWlcGTjJvuz+IyA7Pnu8L2H4g8cCZRhEchmAjpQYtBa1JFyJbjrdWr5Z8PP7Muky6SVpIaD8OuPCpUKNXW5oWNU= ; Received: from unknown (HELO ?192.168.0.2?) (subdino2004@83.194.47.217 with plain) by smtp001.mail.ukl.yahoo.com with SMTP; 23 Aug 2005 07:46:25 -0000 Message-ID: <430AD45F.4000605@yahoo.fr> Date: Tue, 23 Aug 2005 09:46:39 +0200 From: Vincent Pelletier User-Agent: Debian Thunderbird 1.0.6 (X11/20050802) X-Accept-Language: en-us, en MIME-Version: 1.0 To: The development of GRUB 2 References: <430A4263.1020103@inma.ucl.ac.be> In-Reply-To: <430A4263.1020103@inma.ucl.ac.be> X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: backtrace support X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2005 07:50:46 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Vincent Guffens wrote: > This is a problem because I would say that it breaks compilation for > other architectures. I think that the other architectures should have a > function grub_backtrace() that does nothing, or even better that really > does print a backtrace(). However, I don't know how to do it and I can't > test it anyway. For sparc64-ieee1275, there is a ctrace command in open firmware which does that work. grub_backtrace() could do a grub_ieee1275_interpret("ctrace",NULL); then grub_ieee1275_exit(); To make ctrace work the ELF has to be unstripped - for now I hardcoded it in conf/sparc64-ieee1275.rmk. To my experience, -O1 produces an easier to understand ASM than -O0 (sparc64-ieee1275 allows to run in step-by-step or breakpoint mode) because -O0 does really dumb things that is very verbose in ASM line number. But I don't know in details what -O1 does, and if it has drawbacks in optimisation (I think about local functions). > I hope this backtrace will be usefull, but not too much ! I have already found a use for it : I can't make vbetest work, it fails with out of range pointer. I hope it will be committed soon. Oh, by the way, I'm trying to implement the OpenFirmware framebuffer primitives - for now with no luck - so we can have it on ieee1275 ports. There are lots of FCODE examples on Google, but all for PPC. My current problem is how to allocate memory for the framebuffer itself, and how to pass the address "to frame_buffer_adr" (the usual FCODE way to store a value), if possible without using grub_ieee1275_interpret. Vincent Pelletier -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDCtRfFEQoKRQyjtURArwAAJ0QJ9cOK7WTW40UKVdf5O12vU9x5ACfcmXC wmVVj2BJem/7hlyZ4boBMp8= =lCgj -----END PGP SIGNATURE----- ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com