Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MdTMy-00011M-VH for mharc-grub-devel@gnu.org; Tue, 18 Aug 2009 14:25:17 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MdTMx-0000zj-1H for grub-devel@gnu.org; Tue, 18 Aug 2009 14:25:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MdTMs-0000yw-JN for grub-devel@gnu.org; Tue, 18 Aug 2009 14:25:14 -0400 Received: from [199.232.76.173] (port=48496 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdTMs-0000yt-Gi for grub-devel@gnu.org; Tue, 18 Aug 2009 14:25:10 -0400 Received: from rv-out-0708.google.com ([209.85.198.247]:3730) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MdTMs-0003J5-7c for grub-devel@gnu.org; Tue, 18 Aug 2009 14:25:10 -0400 Received: by rv-out-0708.google.com with SMTP id f25so1494607rvb.6 for ; Tue, 18 Aug 2009 11:25:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=dGs+fWx8KgSz4OP9diNsMy3YyVK0QeWooA0BTi9GKmY=; b=MCc6+zpWN6CSyzjaZP4WlH/d3lz0dtcjTZ33wPI8ZqwJEb2en5P1Bp3mC9lS325SY4 ba/ZaPVSpB6RbNSsG4ZgTqZBpZO6gPAe2oU36r5pj6hRHZW+Y58mFWxzvZ1NFRfzpU09 geWbTodNiyjfHjc6Wv4Hu9wy0RiAd8t8uurd0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=KuLRH7dT1OXPmz0rYHI20UOIak1mc8yXcENTh0MbuHzqS47ixCrtLSQoIpp30X3eBW UzHkAXdTNyvnXH97UqE4rGj1q9vHysfhJBcrDljHS1doizQ3bOlmvDveuKTB+pIa/86o 9VNo7oXlSj68GCQdAHetQIdt6M7CSblKh033A= MIME-Version: 1.0 Received: by 10.140.188.15 with SMTP id l15mr1561668rvf.119.1250619908528; Tue, 18 Aug 2009 11:25:08 -0700 (PDT) In-Reply-To: References: <20090817134639.GJ32551@thorin> Date: Wed, 19 Aug 2009 02:25:08 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [GITGRUB] FB driver for EFI 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: Tue, 18 Aug 2009 18:25:15 -0000 On Wed, Aug 19, 2009 at 2:02 AM, Vladimir 'phcoder' Serbinenko wrote: > +grub_uint32_t uga_fb; > +grub_uint32_t uga_pitch; > + > Why are these variables global? They should be either static or > properly prefixed. Hi, Yeah, I have noticed this just after pushing to repo, so I add the static prefix in the ofw efi commit. > > Have you tried linux_video_setup as present in i386/linux.c in > i386/efi/linux.c ? It would be nice if we could share more code > between these 2 files. If it works and you judge that =A0i386/linux.c > and i386/efi/linux.c are similar enough you can merge them using > ifdef's when needed It should be ok to merge i386/efi/linux.c with i386/linux.c now that the fb detection code is separated. --=20 Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/