Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Luvpp-00026x-1M for mharc-grub-devel@gnu.org; Fri, 17 Apr 2009 17:42:57 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Luvpo-00026M-3H for grub-devel@gnu.org; Fri, 17 Apr 2009 17:42:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Luvpj-00023f-Ew for grub-devel@gnu.org; Fri, 17 Apr 2009 17:42:55 -0400 Received: from [199.232.76.173] (port=45095 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Luvpj-00023U-85 for grub-devel@gnu.org; Fri, 17 Apr 2009 17:42:51 -0400 Received: from mail-fx0-f166.google.com ([209.85.220.166]:43364) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Luvpi-0005PL-Ml for grub-devel@gnu.org; Fri, 17 Apr 2009 17:42:51 -0400 Received: by fxm10 with SMTP id 10so1162601fxm.42 for ; Fri, 17 Apr 2009 14:42:49 -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:content-type; bh=RGc96r+Wo/3U2N0rUNAbmcbSRRNwW5nqJKifMEDPfEk=; b=p4SasUDyWP+SPBpmMge/XkvvywK0nM1gpbGnlFjyFoI62oDZwSFOM2PTOPbMjyvSXX UX9nvBvZjxlAuKyBZKjyI9VSesUOdHnp+RSasBqAzcNgs+54i7fxNMafEd9ucKXV+sE3 oDY4wAoF06SyQcOhhOTuqRRg3kEf3DaMP4lDk= 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 :content-type; b=cv9tk+UrmnVtvJy1ABIFBCQXnK+TmBrKbKbDLx/dS9e8D97Fd8TARcSsCVd66Mait4 2ZDisoQfbQih2hFAnBWJwOMB8ZfY18QzIcm9nnN6WB7D0C+TPaNU3ceUkNHJAyhfHhyo fihN0Z7LqDHqptFc7Njx0StJosX7mcGVi+HZI= MIME-Version: 1.0 Received: by 10.86.3.4 with SMTP id 4mr2315192fgc.54.1240004569561; Fri, 17 Apr 2009 14:42:49 -0700 (PDT) In-Reply-To: <1240003243.6449.7.camel@localhost> References: <49E3E0FB.1070907@verizon.net> <1239694395.3718.5.camel@fz.local> <49E455B7.5040402@verizon.net> <49E4518D.1090301@gmail.com> <49E5A102.40701@verizon.net> <49E5A394.8050108@gmail.com> <49E5A91C.3000109@verizon.net> <49E5AA2F.1060305@gmail.com> <1240003243.6449.7.camel@localhost> Date: Fri, 17 Apr 2009 23:42:49 +0200 Message-ID: From: Vladimir Serbinenko To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=000e0cd24804e37c4d0467c70faf X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: status grub2 port of grub-legasy map command 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, 17 Apr 2009 21:42:56 -0000 --000e0cd24804e37c4d0467c70faf Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thank you for the feedback on my patch. Also I'll add a function to allocation and register map for hook. Also > The preboot hooks patch works beautifully. Don't forget to make cleanup function in case loader fails > However, mmap causes some > sort of glitch that makes FreeDOS (one of my three drivemap tests, > together with ReactOS and XP) triple-fault. I've been trying to debug it > with GDB-over-QEMU, but it is a real PITA. I haven't found any sort of > bug in the mmap code, so I'm quite dumbfounded right now. I'll look again into it and try to find the bug. Also for convenience I'll add a function grub_mmap_malloc_and_register (size, align, type, flags) One of the flags will instruct it to allocate memory on lowmem. This way this chunk of code can be shared for everything that needs to register a hook > Nevertheless, > I'm proceeding to the XP test, which would likely be the most common use > case for drivemap. > > -- > -- Lazy, Oblivious, Rational Disaster -- Habbit > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > --000e0cd24804e37c4d0467c70faf Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thank you for the feedback on my patch.=A0 Also I'll add a function to = allocation and register map for hook. Also
<= blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 2= 04, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> The preboot hooks patch works beautifully.
Don't forg= et to make cleanup function in case loader fails
However, mmap causes some
sort of glitch that makes FreeDOS (one of my three drivemap tests,
together with ReactOS and XP) triple-fault. I've been trying to debug i= t
with GDB-over-QEMU, but it is a real PITA. I haven't found any sort of<= br> bug in the mmap code, so I'm quite dumbfounded right now.
=
I'll look again into it and try to find the bug.
Also for conve= nience I'll add a function
grub_mmap_malloc_and_register (size, alig= n, type, flags)
One of the flags will instruct it to allocate memory on lowmem. This way th= is chunk of code can be shared for everything that needs to register a hook=
Nevertheless,
I'm proceeding to the XP test, which would likely be the most common us= e
case for drivemap.

--
-- Lazy, Oblivious, Rational Disaster -- Habbit

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel


--000e0cd24804e37c4d0467c70faf--