From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LoIas-000770-S2 for mharc-grub-devel@gnu.org; Mon, 30 Mar 2009 10:36:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LoIap-00076R-Hc for grub-devel@gnu.org; Mon, 30 Mar 2009 10:36:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LoIak-00075h-VW for grub-devel@gnu.org; Mon, 30 Mar 2009 10:36:03 -0400 Received: from [199.232.76.173] (port=54164 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LoIak-00075Z-If for grub-devel@gnu.org; Mon, 30 Mar 2009 10:35:58 -0400 Received: from mail-fx0-f166.google.com ([209.85.220.166]:46346) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LoIak-0000oj-36 for grub-devel@gnu.org; Mon, 30 Mar 2009 10:35:58 -0400 Received: by fxm10 with SMTP id 10so1915788fxm.42 for ; Mon, 30 Mar 2009 07:35:54 -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 :content-type:content-transfer-encoding; bh=H5nji8ptdvNaNTw2+VWFqEbX8DmanZHK6cb5SPUVLPc=; b=Tw/+t/i6N6r1zPVUyKW7T3+eu4PgjR31dE7EuZNVrjUsbsQpr02KCVEKtKq0S+YPDU 0d+umwXBaveNXA/4A7UJP/x30rwJRqIzRr8Wf1dSvXsu5EZCbzk0bSSNVAOcOQNLUsxm eyFagfj0QXAxH91wpbjHeJf5eWlkXF71Bb7xM= 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:content-type:content-transfer-encoding; b=AkiB67rAA6qNTKXYN7uGxwjM1PlzfagXrC8XQOKxaORPjrsj9TMLg1fqGP//1znyS2 K8bHF9I+l+aIETUsLdj/1k5YrJdQO5u2DNQamUg6E7GnenF10hSNFecwnB8M4St4+egS /vIPzhi5w9R9cPe+ombo1YEJohEmVVguSm6DI= Received: by 10.86.29.8 with SMTP id c8mr1660762fgc.70.1238423754262; Mon, 30 Mar 2009 07:35:54 -0700 (PDT) Received: from ?192.168.1.2? (51-96.3-85.cust.bluewin.ch [85.3.96.51]) by mx.google.com with ESMTPS id 4sm3964704fgg.10.2009.03.30.07.35.53 (version=SSLv3 cipher=RC4-MD5); Mon, 30 Mar 2009 07:35:53 -0700 (PDT) Message-ID: <49D0D8C8.4010801@gmail.com> Date: Mon, 30 Mar 2009 16:35:52 +0200 From: phcoder User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: The development of GRUB 2 References: <20090306195735.GA9992@thorin> <20090308130106.GC28707@thorin> <49B3C9A2.3050101@nic.fi> <20090313194447.GA17416@thorin> <20090318102539.GE20072@thorin> <49C0F277.2050004@gmail.com> <20090321175056.GC18284@thorin> <20090322160032.GA21948@thorin> <20090328125317.GA8493@thorin> <1238419927.2868.6.camel@mj> In-Reply-To: <1238419927.2868.6.camel@mj> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] build 32-bit Linux loader as `linux', rename legacy loader to `linux16' 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: Mon, 30 Mar 2009 14:36:04 -0000 Pavel Roskin wrote: > On Sat, 2009-03-28 at 13:53 +0100, Robert Millan wrote: > >>> Here's a patch to rename `linux' to `linux16' and build the 32-bit loader as >>> simply `linux'. >> Committed. > > Just for your information. With the old loader, booting an x86_64 > kernel in qemu emulating i386 would result in a kernel message: > > "This kernel requires an x86-64 CPU but only detected an i686 CPU > Unable to boot - please use a kernel appropriate for your CPU" > > With the new loader, the kernel hands without showing any messages. It > can be a kernel bug. Linux 2.6.29, current GRUB. > I confirm. I suppose that this check and message is bypassed with 32-bit loading mode. IMO grub2 should provide an equivlent of this check. We already have cpuid code. Does anyone know how to determine if kernel is i386 or amd64? -- Regards Vladimir 'phcoder' Serbinenko