Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MCOAR-0006Dt-J1 for mharc-grub-devel@gnu.org; Thu, 04 Jun 2009 21:24:23 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MCOAP-0006Cn-Lz for grub-devel@gnu.org; Thu, 04 Jun 2009 21:24:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MCOAL-0006AW-56 for grub-devel@gnu.org; Thu, 04 Jun 2009 21:24:21 -0400 Received: from [199.232.76.173] (port=42521 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MCOAK-0006AQ-Tz for grub-devel@gnu.org; Thu, 04 Jun 2009 21:24:16 -0400 Received: from mail-fx0-f217.google.com ([209.85.220.217]:44743) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MCOAK-0005pm-8X for grub-devel@gnu.org; Thu, 04 Jun 2009 21:24:16 -0400 Received: by fxm17 with SMTP id 17so1272309fxm.42 for ; Thu, 04 Jun 2009 18:24:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=/k72v7c8PaBzj9YXsVJehGHzVHJLbp4w6i6unicPb/U=; b=U4QUTJHNzbEXerGX8Zm0UznolBvQ0Hr8ULpS+fQIhSOz44jG8TYuwwcPn6PJ3f6OHA o6hklAGtnnklSlyMW3aQK0Xbn0TzSXZbBGDW5bqseOyOps/x2lAX9soGekceDoNlnm1q soIH+8+6v11v//9Ug1/KT6YSto4pVnUT/pnPI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Vc7+Jerud7RX7AyhWs77JkzyMwxk3xrdOayvGgXEsPeZBjCny5k/MWBGorVjfuVA4p buDWQ2rfWymmkOyJx2BWslGn0euBnNVKBSVm+NVWICaqGO39yp6JGbSscXQcElFg7CRn 9e3v161oWcz7GQG777OVHVda0JaLPMwdlUR6Q= MIME-Version: 1.0 Received: by 10.204.31.77 with SMTP id x13mr2658362bkc.6.1244165049238; Thu, 04 Jun 2009 18:24:09 -0700 (PDT) In-Reply-To: <200906050007.20241.dron@osrc.info> References: <200906032352.51827.dron@osrc.info> <200906050007.20241.dron@osrc.info> Date: Fri, 5 Jun 2009 03:24:09 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: Robert Millan Subject: Re: multiboot take partial mmap 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: Fri, 05 Jun 2009 01:24:21 -0000 On Thu, Jun 4, 2009 at 10:07 PM, Andrey Valyaev wrote: > On =FE=C5=D4=D7=C5=D2=C7 04 =C9=C0=CE=D1 2009 03:18:15 Vladimir 'phcoder'= Serbinenko wrote: >> > My kernel worked fine with grub-legacy. >> > But encounter problem. >> > kernel receive mmap up to 1meg... >> Be sure to use latest svn and post your exact config >> since I didn't have such a problem in my tests > > Sorry, it's my bug... > grub2 place modules to upper pages, but grub-legasy place modules after > kernel. > > I wrong check the modules location for searching temporary kernel memory. > > mmap work. Do you mean that memory map as passed by mainstream grub is ok? > > Some question. Module mmap need only for command badram? No. It's needed for drivemap and ACPI spoofing too > my loader worked > without mmap module. Do you mean that you replaced grub_memory_mmap_iterate with grub_machine_memory_mmap_iterate? As I already said it's NOT correct. Can you give me more details in a personal mail in Russian so language wouldn't be a problem for you? > > PS: latest svn revision (from 2243) failed with message: > > gcc -Icommands -I./commands -I. -I./include -I./include -Wall -W =9A-Wall= -W - > Wshadow -Wpointer-arith -Wmissing-prototypes =9A =9A =9A =9A =9A =9A =9A = =9A =9A-Wundef - > Wstrict-prototypes -g -Os -falign-jumps=3D1 -falign-loops=3D1 -falign-fun= ctions=3D1 > -m32 -fno-stack-protector -mno-stack-arg-probe -fno-builtin -mrtd -mregpa= rm=3D3 > -m32 -Werror -Wall -MD -c -o search_mod-commands_search.o commands/search= .c > cc1: warnings being treated as errors > commands/search.c: In function 'search_fs': > commands/search.c:42: error: generating trampoline in object (requires > executable stack) > commands/search.c: In function 'grub_cmd_search': > commands/search.c:105: error: generating trampoline in object (requires > executable stack) > make[1]: *** [search_mod-commands_search.o] Error 1 > > $ gcc --version > gcc (Gentoo 4.3.3-r2 p1.1, pie-10.1.5) 4.3.3 > This is because of commit 2243 by Robert Millan. The commit was about floppy probing but also added -Wall -Werror to search.mod I myself stepped on this mine once with adding -Wall -Werror to my xnu modu= le. I'll revert this change (only -Werror, not the rest of commit) as it causes build error for all gentoo users. Sorry, Robert, but we can't enable -Werror and still have nested functions. I don't think we should use -Werror at all because different compilers, versions or modifications of same compiler cause different warnings and imho maintaintaining cost is too high and breaks are too frequent. Or perhaps we can enable -Werror only on some compilers? Or perhaps anyone has a better idea > -- > Andrey Valyaev > http://mdf-i.blogspot.com > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Regards Vladimir 'phcoder' Serbinenko