Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1M0Xpm-0007tK-W5 for mharc-grub-devel@gnu.org; Sun, 03 May 2009 05:18:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M0Xpl-0007sk-5R for grub-devel@gnu.org; Sun, 03 May 2009 05:18:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M0Xpg-0007rE-Bw for grub-devel@gnu.org; Sun, 03 May 2009 05:18:04 -0400 Received: from [199.232.76.173] (port=52497 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0Xpg-0007r9-6I for grub-devel@gnu.org; Sun, 03 May 2009 05:18:00 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:43080) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M0Xpf-0006Jj-QE for grub-devel@gnu.org; Sun, 03 May 2009 05:18:00 -0400 Received: by ewy6 with SMTP id 6so3323093ewy.42 for ; Sun, 03 May 2009 02:17:59 -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=LiRu3P+ufhcjjlXu3tD2QIzUtNSsOhk8RFKYg0aLR+Q=; b=ik3ZJtjPvoV+hLGYF6y60WjmRfVyGFD8qeyVi9WkNWPewsmzgi7KAPTdxAVLLYB3J+ 0kLSbzZtFLGHD0MacyVx7HvQ1ghTR7QmpL5kc0Dlu55vTD5GbQulOCotwGkvZhYpPJ7e RULq2j/HvK0U/Yo4dgt963bvr6AyF6vlLndSc= 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=NjIIp6zbnd0yRCcTMePPx/fRyKDQttJDi2aHsBSfLvEfJ1aGgKUed113vA7jVioFSj 7hHGeVyLdVRMoNtX+rkBQYlPoekrsx/itI6QPjfuyx09/5qqwpJLf8Nfo33MTQUq/20c WfEAJq1osR18fQPG9oc3JR8nTmgUoQ5jQJ16M= MIME-Version: 1.0 Received: by 10.210.105.8 with SMTP id d8mr1433568ebc.92.1241342279157; Sun, 03 May 2009 02:17:59 -0700 (PDT) In-Reply-To: <1241308934.4290.79.camel@accesodirecto.casa> References: <49E3E0FB.1070907@verizon.net> <49E5A91C.3000109@verizon.net> <49E5AA2F.1060305@gmail.com> <1240003243.6449.7.camel@localhost> <49E90CCD.90207@verizon.net> <49E91862.9090103@verizon.net> <1240021094.19677.29.camel@accesodirecto.casa> <1241308934.4290.79.camel@accesodirecto.casa> Date: Sun, 3 May 2009 11:17:59 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=0015174beee49808570468fe859b 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: Sun, 03 May 2009 09:18:05 -0000 --0015174beee49808570468fe859b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello. Now I just quickly answer you questions. Will review the patch a bit later (probably still today) 2009/5/3 Javier Mart=EDn > I am glad to inform that, with the new version of the mmap patch, > drivemap now boots all my hd1 installs of: > - Windows XP (Pro x64) > - ReactOS > - FreeDOS > > I would suggest, however, that the return type of > grub_mmap_malign_and_register be changed to void* from char*, just like > the return type from malloc, because it's the meaningful data type to > indicate a pointer to generic memory _and_ it automatically casts to any > pointer type the caller uses (which is the reason it's used in malloc). > Ok with me. Oppositions from anyone else? > > I've also added an "undo" function for install_int13_handler, as > partially required by the preboot hook interface, but I really have no > idea how to test it, so... is this implementation sensible? It just > restores the old int13 handler and frees the allocated memory. > It's what it's supposed to do. You can make a fake loader which will just return and check that (hd0) and (hd1) aren't swapped in grub2 > > -- > -- Lazy, Oblivious, Recurrent Disaster -- Habbit > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > --=20 Regards Vladimir 'phcoder' Serbinenko --0015174beee49808570468fe859b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello. Now I just quickly answer you questions. Will review the patch a bit= later (probably still today)

2009/5/3 Ja= vier Mart=EDn <lordhabbit@gmail.com>
I am glad to info= rm that, with the new version of the mmap patch,
drivemap now boots all my hd1 installs of:
- Windows XP (Pro x64)
- ReactOS
- FreeDOS

I would suggest, however, that the return type of
grub_mmap_malign_and_register be changed to void* from char*, just like
the return type from malloc, because it's the meaningful data type to indicate a pointer to generic memory _and_ it automatically casts to any pointer type the caller uses (which is the reason it's used in malloc).=
Ok with me. Oppositions from anyone else?

I've also added an "undo" function for install_int13_handler,= as
partially required by the preboot hook interface, but I really have no
idea how to test it, so... is this implementation sensible? It just
restores the old int13 handler and frees the allocated memory.
It's what it's sup= posed to do. You can make a fake loader which will just return and check th= at (hd0) and (hd1) aren't swapped in grub2

--
-- Lazy, Oblivious, Recurrent Disaster -- Habbit

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




--
Regards
Vladimir= 'phcoder' Serbinenko
--0015174beee49808570468fe859b--