From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Kawpo-0006r5-Je for mharc-grub-devel@gnu.org; Wed, 03 Sep 2008 14:12:04 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kawpl-0006qN-Ke for grub-devel@gnu.org; Wed, 03 Sep 2008 14:12:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kawpk-0006q9-JB for grub-devel@gnu.org; Wed, 03 Sep 2008 14:12:00 -0400 Received: from [199.232.76.173] (port=59717 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kawpk-0006q4-9o for grub-devel@gnu.org; Wed, 03 Sep 2008 14:12:00 -0400 Received: from fg-out-1718.google.com ([72.14.220.152]:12719) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kawpk-0007Tw-2g for grub-devel@gnu.org; Wed, 03 Sep 2008 14:12:00 -0400 Received: by fg-out-1718.google.com with SMTP id l26so239403fgb.30 for ; Wed, 03 Sep 2008 11:11:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=TraawZD/dWlqdZLv/NS3HU94T0lov9g6VZ/z1jYLc6Y=; b=qgE4Kw+wUFo9yauOjGND4o33wP+Iur/3AgYJFKJ3CMek+/A1kTpZraP7MiKRLyujco Mj4djyrJM6xyLA/IXgL0sRZNr1wgWEdZIMMYjo2QJ/YPrP/CJFjR9iipfIhHEklFY6Jb BCuU0Hioqc5bBFvinO3YDf64zcs/GJ4MTyRQc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=G9pkJrnXVqwHR3JN6ajIM972bnssPNsOCPtfvQDLDbpkLs9/TPlM71MC4OX5d5lilc cB3goFMIPTZncqA7WUeXdElPQs6vKcYV4g+Z2D2vZN0ExM0l/+yJ1EAYmmciqSOIopkB WLeIx7RK9fZTRWpnHRK877fap41lCPBDbyP/g= Received: by 10.86.94.11 with SMTP id r11mr6916898fgb.0.1220465519184; Wed, 03 Sep 2008 11:11:59 -0700 (PDT) Received: from ?192.168.1.15? ( [83.77.145.184]) by mx.google.com with ESMTPS id e20sm8729921fga.1.2008.09.03.11.11.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 03 Sep 2008 11:11:57 -0700 (PDT) Message-ID: <48BED36B.2060005@gmail.com> Date: Wed, 03 Sep 2008 20:11:55 +0200 From: phcoder User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: The development of GRUB 2 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> In-Reply-To: <48BECF2A.4080703@nic.fi> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: 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: Wed, 03 Sep 2008 18:12:02 -0000 Vesa Jääskeläinen wrote: > phcoder wrote: >> Hello. In this case we can transfer the whole functionality located in >> kern/loader.c to a dedicated module boot.mod. This module will also >> register "boot" command. In this way the encapsulation won't be broken >> 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 jumps > to RM and back to PM. > kern/loader.c is always executed in PM. It just chooses which kernel-specific function to call next. RM helpers are found in kern/i386/loader.S and kern/i386/pc/startup.S (for chainloader). Vladimir 'phcoder' Serbinenko