Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KUlXz-0006pQ-LK for mharc-grub-devel@gnu.org; Sun, 17 Aug 2008 12:56:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KUlXx-0006pC-HV for grub-devel@gnu.org; Sun, 17 Aug 2008 12:56:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KUlXu-0006ou-UC for grub-devel@gnu.org; Sun, 17 Aug 2008 12:56:04 -0400 Received: from [199.232.76.173] (port=48582 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUlXu-0006or-Qy for grub-devel@gnu.org; Sun, 17 Aug 2008 12:56:02 -0400 Received: from ti-out-0910.google.com ([209.85.142.186]:60767) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KUlXu-0006HN-Bt for grub-devel@gnu.org; Sun, 17 Aug 2008 12:56:02 -0400 Received: by ti-out-0910.google.com with SMTP id u5so711182tia.10 for ; Sun, 17 Aug 2008 09:55: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:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=pZcaSXeDBfPAkCnKCNRLX7nvvAgbYsChHoPhniXwOCY=; b=t2DvZtkZJoYq7Lj2x1rd7OhO1fTh0+jm2aYkS+gQIF+XSNGqqADq2Oi7W7VwU8TqbM KiJynTtdogXnHi9D/7HeFtvO/2s1ds0zRiG39FT4Lu4ZPauoBMvGchYt7yKC40lxRccq itqGrqq4JyAH+hqJqjqCRSbmn5ITT4K61EOSI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=aaeRk1p2yN07w5v3k/ZEVKvWNTLSf7LRAnUyEPXEIFC1HuyA7C5LgggvnrP3eP8AMn 0T8C82kWR0nx2T3zqyvZVj8EzX5DMlgN9zl07CqNgOnIEha9P642njtpaJFtfW51jFBW +PkogrPtzPJiQ5eozuYiRskoxT6k73ve9N0BM= Received: by 10.110.57.6 with SMTP id f6mr4666745tia.35.1218992159441; Sun, 17 Aug 2008 09:55:59 -0700 (PDT) Received: by 10.110.16.5 with HTTP; Sun, 17 Aug 2008 09:55:59 -0700 (PDT) Message-ID: Date: Mon, 18 Aug 2008 00:55:59 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <48A80BF9.3090000@nic.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <23656916.573861217512511895.JavaMail.chaac@nic.fi> <48A80BF9.3090000@nic.fi> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: [PATCH] Move assembly code out of the kernel 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, 17 Aug 2008 16:56:05 -0000 On Sun, Aug 17, 2008 at 7:31 PM, Vesa J=E4=E4skel=E4inen wro= te: > chaac@nic.fi wrote: >> I have made generic function that does basically the same thing for bios >> service 0x10 (video). In that modification you prepare registers >> structure that will be configured during real mode switching. I am yet >> to commit it for review, but I think it would be more generic way to do >> this. When I come back from my holiday I will commit the code for review= . >> >> So please wait a bit before committing this :) Hi, I'm thinking perhaps we can make it more generic and support multiple INT in one function. One way to do this is not use INT, but retrieve the address from IVT and do a far call. On return, pop the flag on stack. This would also make it easily to support far call, In that case, we just don't pop the flag. I also notice that you do the protected/real mode switch in grub_bioscall_int10h, why not use the prot_to_real and real_to_prot ? If you need to keep the value of %eax, you can store it in a structure and pass it using other register like %ecx. --=20 Bean