From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KbeTI-0006vd-3g for mharc-grub-devel@gnu.org; Fri, 05 Sep 2008 12:47:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbeTE-0006uQ-TO for grub-devel@gnu.org; Fri, 05 Sep 2008 12:47:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbeT8-0006qd-Ct for grub-devel@gnu.org; Fri, 05 Sep 2008 12:47:37 -0400 Received: from [199.232.76.173] (port=53636 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbeT7-0006qW-4l for grub-devel@gnu.org; Fri, 05 Sep 2008 12:47:33 -0400 Received: from ug-out-1314.google.com ([66.249.92.173]:13357) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KbeT1-0001vb-2s for grub-devel@gnu.org; Fri, 05 Sep 2008 12:47:29 -0400 Received: by ug-out-1314.google.com with SMTP id a2so134465ugf.17 for ; Fri, 05 Sep 2008 09:47:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer; bh=a0GdoPqaGJFuhVWRmZeX6wMFSOqK1hCajbvj8iBBnMI=; b=LKgJv9MMg5aV7IF4P2OLubKc3HmBk7h2/UoUytbMKY0U/DiYuBxIwDDUZOmbV5zylF KeIax+mjdrrqrPZ00pM6icu/37FJo84BRGxTlmoivleBud1pgpDYbkv51OkrP6ZGOIsY x66u/cow2Hb5Mjuycd2ySWOBDEmgDYIkia0v4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer; b=foV35U63znopzaoTaekJaTmcE+OYAjrG47e3UuXIJjXZElJYe912v06zdCnc3uN+QC eyHd0hO4p7KCMq38aKPFJTiR4iFFQ5AnLpv4kw8ggB8amajDrMNGaXhCGkmKLF2ShGg0 Ozwf25qstW2NuI5JFvt6WnoNs0ai59RgyabXU= Received: by 10.66.249.20 with SMTP id w20mr808800ugh.22.1220633243636; Fri, 05 Sep 2008 09:47:23 -0700 (PDT) Received: from ?192.168.1.100? ( [213.37.137.93]) by mx.google.com with ESMTPS id m4sm484300ugc.3.2008.09.05.09.47.21 (version=SSLv3 cipher=RC4-MD5); Fri, 05 Sep 2008 09:47:22 -0700 (PDT) From: Javier =?ISO-8859-1?Q?Mart=EDn?= To: The development of GRUB 2 In-Reply-To: <48C15AAF.1090007@gmail.com> References: <48BD4C52.6040308@gmail.com> <1220367299.23879.15.camel@localhost> <48BD62BE.7090507@gmail.com> <1220373059.23879.25.camel@localhost> <48BD8847.9030502@gmail.com> <1220386216.23879.55.camel@localhost> <48BDBC96.3010602@gmail.com> <1220398682.23879.70.camel@localhost> <48BEC43A.1000309@nic.fi> <48BECDDD.5040502@gmail.com> <48BECF2A.4080703@nic.fi> <1220566576.8537.5.camel@localhost> <48C15AAF.1090007@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-7+Pmbq1PINJewqro7E5s" Date: Fri, 05 Sep 2008 18:47:30 +0200 Message-Id: <1220633250.8537.17.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: [PATCH] Move kern/loader.c to boot.mod and add preboot_support (was Re: Sendkey patch) 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 Sep 2008 16:47:42 -0000 --=-7+Pmbq1PINJewqro7E5s Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable El vie, 05-09-2008 a las 18:13 +0200, phcoder escribi=C3=B3: > Hello. As I said in another email there is no need for it. I send a > patch for it. Well, I won't deny the patch is clever and looks good (I haven't tested it yet). However, taking the generic "boot" command out of kernel and leaving the several loader-specific assembly routines (which would be the parts needing relocation) there is as elegant as vogon poetry. However, if there is no opposition and your patch works fine - I'm about to test it right now - we can first commit it (thus making core.img smaller) and then work on getting the loader asm routines out of kernel. -Habbit > Vladimir 'phcoder' Serbinenko > Javier Mart=C3=ADn wrote: > > El mi=C3=A9, 03-09-2008 a las 20:53 +0300, Vesa J=C3=A4=C3=A4skel=C3=A4= inen escribi=C3=B3: > >> phcoder wrote: > >>> Hello. In this case we can transfer the whole functionality located i= n > >>> kern/loader.c to a dedicated module boot.mod. This module will also > >>> register "boot" command. In this way the encapsulation won't be broke= n > >>> and kernel will become even smaller. > >> Remember that realmode code needs to reside below < 1 MiB. That is the > >> reason realmode code is embedded in kernel. In there you only see jump= s > >> to RM and back to PM. > > We could use the relocator functionality that was once discussed here (= I > > don't know if it was finally committed) so that modules could declare > > "bundles" of code+data to be deployed to RM area. Or make sure every > > single instruction in there uses 32-bit addressing, together with > > artificial EIP-relativization of addresses like in drivemap_int13.S > >=20 > > -Habbit > >=20 > >=20 > > -----------------------------------------------------------------------= - > >=20 > > _______________________________________________ > > Grub-devel mailing list > > Grub-devel@gnu.org > > http://lists.gnu.org/mailman/listinfo/grub-devel >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel --=-7+Pmbq1PINJewqro7E5s Content-Type: application/pgp-signature; name=signature.asc Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iQIVAwUASMFioaSl+Fbdeo72AQLpCg/+Icg7/KkkbpQ9+21G78JJgXYFqKrPlxqV vAjRJl+xVyMJMuL0luHAWd+vREAEgx9LwuvY2zw/5cNsyW/cPFQQVbkdBkcLYxN4 tltXyoViJiQWRhOXXQkM5irbZvQqh+qxDUbzldQwE/JaD9kZKv1FFx2BbX89gu5+ e3bVvdASXt8FlEItEOmL7ETE+G3FSL3jcJ3RoCA23qIIh9HG31CyKR/DZc7eiXoR 2aeVZnYldZvAsfJvtzJRdVE2nYBdWHsKeLuNPdrR7qx47SAZyPMSrbBnw86VeXBt yeLvVImxbPSAupoJlcLeAav35cR3kyiSAODM2zquSlJpLSJvL4XuxzFtL5Bry9Bd P4MPLZY6jHSLSKVreJuAU/GxMaAHa1ykhxP91pOOZfKtN5W7bpYBEc5nzV84aADt X/cLhoieWtnb7SXXXKN4AaQ+D323wzNfxG/4/Xz80FPC02YP/PTRD0At79aTIRxx sHoobDqhMWNGfD+YjsjQukp8FFbjwLOinJ649A2DVzS60jETNOuHZXrmNRilOO/Q F0VvEpoAuF/elOhQ2P/2IYS9F3T1jHXUZG4vaizshB6o/Qu983DY2KxoWmYL42FY FeMBn/dInJ96T+jp05jnRsLqoxJCJHuD/vK9xM+qYNoH2MEL7z6pcAQmll4RHobg 19M1l33/4p4= =FQ5U -----END PGP SIGNATURE----- --=-7+Pmbq1PINJewqro7E5s--