From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwP5p-0000nt-Ff for mharc-grub-devel@gnu.org; Thu, 07 Jun 2007 17:00:29 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwP5o-0000nb-1b for grub-devel@gnu.org; Thu, 07 Jun 2007 17:00:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwP5m-0000nL-JM for grub-devel@gnu.org; Thu, 07 Jun 2007 17:00:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwP5m-0000nI-Gv for grub-devel@gnu.org; Thu, 07 Jun 2007 17:00:26 -0400 Received: from pne-smtpout3-sn2.hy.skanova.net ([81.228.8.111]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HwP5l-0004fX-BV for grub-devel@gnu.org; Thu, 07 Jun 2007 17:00:25 -0400 Received: from [127.0.0.1] (88.193.32.97) by pne-smtpout3-sn2.hy.skanova.net (7.2.075) id 4667D320000079E5 for grub-devel@gnu.org; Thu, 7 Jun 2007 23:00:22 +0200 Message-ID: <466871EC.7010606@nic.fi> Date: Fri, 08 Jun 2007 00:00:28 +0300 From: =?ISO-8859-1?Q?Vesa_J=E4=E4skel=E4inen?= User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: The development of GRUB 2 References: <200706041604.l54G4p0v029961@correoredir01.dinaserver.com> <46659E30.90808@raulete.net> <8c0c43de0706071125y5b52c221ga3d423de823c82d5@mail.gmail.com> In-Reply-To: <8c0c43de0706071125y5b52c221ga3d423de823c82d5@mail.gmail.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-kernel: Solaris 8 (1) Subject: Re: GSoC: CD-ROM booting options 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: Thu, 07 Jun 2007 21:00:28 -0000 Alex Roman wrote: > On 05/06/07, adrian15 wrote: >> GRUB 2 needs to support both cases, but I prefer to see something not >> present in GRUB Legacy implemented in GRUB 2 first. > > Good point... In any case there's some commonality between the two > cases and for now I'm working to see if I can read some ElTorito data > structures from a bootable CD... Which brings me to the question: > > Is it possible to call int 13h functions from a GRUB2 module? If yes, > what is the (preferred?) way to do it? You need to add new kernel thunk(s) to grub2/kern/i386/pc/startup.S and then make them jump to 16b real mode and then return back to protected mode. There are lots of examples in that file. Then make proper include file for your calls (most likely you can add it to existing one in this include file grub2/include/grub/i386/pc/biosdisk.h). I would suggest to make testing command that accesses those kernel thunks. This way it is easier to test out those API calls.