From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LVw4s-0002A8-Ns for mharc-grub-devel@gnu.org; Sat, 07 Feb 2009 17:55:10 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LVw4r-00029m-6b for grub-devel@gnu.org; Sat, 07 Feb 2009 17:55:09 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LVw4q-00029V-FD for grub-devel@gnu.org; Sat, 07 Feb 2009 17:55:08 -0500 Received: from [199.232.76.173] (port=51966 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVw4q-00029S-9M for grub-devel@gnu.org; Sat, 07 Feb 2009 17:55:08 -0500 Received: from aybabtu.com ([69.60.117.155]:60084) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LVw4p-0006Oj-Sx for grub-devel@gnu.org; Sat, 07 Feb 2009 17:55:08 -0500 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1LVvzd-0006M3-90 for grub-devel@gnu.org; Sat, 07 Feb 2009 23:49:45 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1LVw4L-0002YT-Qt for grub-devel@gnu.org; Sat, 07 Feb 2009 23:54:37 +0100 Date: Sat, 7 Feb 2009 23:54:37 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20090207225437.GV6343@thorin> References: <498B4FCB.6090106@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <498B4FCB.6090106@gmail.com> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: Framebuffer address and kernel video mode 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: Sat, 07 Feb 2009 22:55:09 -0000 On Thu, Feb 05, 2009 at 09:44:59PM +0100, phcoder wrote: > Hello. First of all some good news: I managed to boot xnu kernel. To do > so I need to set it to video mode and pass video mode info to kernel. > Now I do it in adapter-specific way which is bad and ugly. So I would > like to propose an interface to set video mode before loading kernel and > then retrieve information: > For this I propose to put grub_gfxterm_init lines 253 (modevar = > grub_env_get ("gfxmode"))-482 (grub_video_fill_rect (...)) into video.c as > grub_video_setup_by_var (char *varname) > The informations I need is: > > framebuffer address, bytes_per_scan_line, resolution, color depth > > Unfortunately framebuffer_address and bytes_per_scanline is missing from > struct grub_video_mode_info. I propose to add it to this structure This is VERY nice. Maybe we can make the Linux loader do the same, once we switch to loader/i386/linux.c (current loader is loader/i386/pc/linux.c). -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."