From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Uyy71-0004AG-EC for mharc-grub-devel@gnu.org; Tue, 16 Jul 2013 01:47:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uyy6y-0004AA-9p for grub-devel@gnu.org; Tue, 16 Jul 2013 01:47:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uyy6w-0008Da-N1 for grub-devel@gnu.org; Tue, 16 Jul 2013 01:47:44 -0400 Received: from mail-ee0-x22c.google.com ([2a00:1450:4013:c00::22c]:35127) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uyy6w-0008DD-Gn for grub-devel@gnu.org; Tue, 16 Jul 2013 01:47:42 -0400 Received: by mail-ee0-f44.google.com with SMTP id c13so113268eek.17 for ; Mon, 15 Jul 2013 22:47:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=wpvbNawAN6XgUbWH0usv4XtBIW2sqmW+zRyrw7xdZrs=; b=Kliv3uABo3uIJUgs6nFlZMBDDXtE1C3ZDHx4VYOMYVnq7lewiBxErHpYHDfFi7Zhjy aO1tFZXSeNFaOgcO4q0FVdjV5YBHJ3CTvljQj7UdZlkCX/VFTKCBoJk7Ag9fksBaTR3z ZnhvQCLkhJU60HzAguO0sbcvkPB8R8tYDtwgjmwr9393fzfdIrv8CUstZHNY+B/mUDXc hF5uFUylX3XSGsQlr9AM2AsCZw9zjaRfeemXACT3sXWE5dKnkpI13aXdVYxNVFVUMez0 QPpNPWcnIYnan/70FPckYr/quHyqlHOlxip4zEH7NqoWO+jQXvruxMUQFmmxyZPHKK/X sGng== X-Received: by 10.15.99.2 with SMTP id bk2mr62187248eeb.76.1373953661371; Mon, 15 Jul 2013 22:47:41 -0700 (PDT) Received: from [192.168.42.127] (175-227.197-178.cust.bluewin.ch. [178.197.227.175]) by mx.google.com with ESMTPSA id c3sm44523451eev.3.2013.07.15.22.47.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jul 2013 22:47:40 -0700 (PDT) Message-ID: <51E4DE77.40402@gmail.com> Date: Tue, 16 Jul 2013 07:47:35 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130630 Icedove/17.0.7 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: [PATCH] powerpc: fix startup bss cleaning References: <20130715151237.Horde.RWhdgZir309R5EmlUhPR2GA@imap.linux.ibm.com> In-Reply-To: <20130715151237.Horde.RWhdgZir309R5EmlUhPR2GA@imap.linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::22c X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jul 2013 05:47:46 -0000 On 15.07.2013 21:12, Paulo Flabiano Smorigo/Brazil/IBM wrote: > Hi, > > The trunk version of GRUB is crashing on power machines. Openfirmware > returns the following message: > Welcome to GRUB! > > DEFAULT CATCH!, exception-handler=fff00700 > at %SRR0: 0000000000003940 %SRR1: 0000000000083002 > Open Firmware exception handler entered from non-OF code > > Client's Fix Pt Regs: > 00 000000000020a074 0000000001a3ff40 0000000000000000 00000000001e3de0 > 04 00000000001e3eb0 0000000000000004 00000000001d1fd0 000000000000007c > 08 0000000000004000 0000000000003940 00000000001d4810 0000000001a3ff40 > 0c 0000000040000084 0000000000000000 0000000000000000 0000000000000000 > 10 0000000000000000 0000000000000000 0000000000000000 0000000000000000 > 14 0000000000c00000 0000000000000008 0000000000000000 0000000000000000 > 18 0000000000000000 0000000000000000 0000000000000000 0000000000000000 > 1c 0000000000219620 00000000001e3eb0 0000000000219620 00000000001e3de0 > Special Regs: > %IV: 00000700 %CR: 20000084 %XER: 00000000 %DSISR: 00000000 > %SRR0: 0000000000003940 %SRR1: 0000000000083002 > %LR: 000000000020a0a4 %CTR: 0000000000003940 > %DAR: 0000000000000000 > Virtual PID = 0 > ok > 0 > > > After some investigation, my colleague Gustavo Duarte discover that the > problem is caused by grub_file_filters_enabled. Its initial value isn't > zero: > grub_file_filters_enabled[0]@0x219614 0x0 > grub_file_filters_enabled[1]@0x219618 0x0 > grub_file_filters_enabled[2]@0x21961c 0x0 > grub_file_filters_enabled[3]@0x219620 0x3940 > > > Using objdump I noticed that this variable is the last one from the bss > section: > $objdump -t grub-core/kernel.exec | sort > ... > 00218d14 l O .bss 00000004 count.2347 > 00218d18 l O .bss 00000100 buf.1909 > 00218e18 l O .bss 00000100 linebuf > 00218f18 g O .bss 00000100 grub_errmsg > 00219018 g O .bss 00000010 grub_file_filters_all > 00219028 g O .bss 00000010 grub_file_filters_enabled > 00219038 g .bss 00000000 _end > > It seems that startup.S for powerpc skips the last bytes, so I made a > patch to fix it. Tried again and the problem was gone: > grub_file_filters_enabled[0]@0x219614 0x0 > grub_file_filters_enabled[1]@0x219618 0x0 > grub_file_filters_enabled[2]@0x21961c 0x0 > grub_file_filters_enabled[3]@0x219620 0x0 > As discussed on IRC this patch was wrong. The real problem was handling unaligned BSS. Fixed in trunk now. > > > Best regards! > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >