Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JJRYO-0008FI-59 for mharc-grub-devel@gnu.org; Mon, 28 Jan 2008 05:49:28 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JJRYK-0008EW-O6 for grub-devel@gnu.org; Mon, 28 Jan 2008 05:49:24 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JJRYI-0008Du-Js for grub-devel@gnu.org; Mon, 28 Jan 2008 05:49:24 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJRYH-0008Dj-LP for grub-devel@gnu.org; Mon, 28 Jan 2008 05:49:22 -0500 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JJRYH-00035t-5t for grub-devel@gnu.org; Mon, 28 Jan 2008 05:49:21 -0500 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JJRYG-0007Ud-1q for grub-devel@gnu.org; Mon, 28 Jan 2008 11:49:20 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JJRWo-0000AB-DM for grub-devel@gnu.org; Mon, 28 Jan 2008 11:47:50 +0100 Date: Mon, 28 Jan 2008 11:47:50 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080128104750.GB32702@thorin> References: <20080126172120.GA4119@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: Compiling grub2 on *BSD? 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, 28 Jan 2008 10:49:25 -0000 > > - movsbl %dh, %eax > > - movl %eax, %ss:(DATA_ADDR + GRUB_KERNEL_MACHINE_INSTALL_DOS_PART) > > + // Check for the multiboot signature > > + cmpl $0x1badb002, %ss:(DATA_ADDR + 0x50) > > + jz 1f > [...] > > if there is no objection, I'd like to check in this patch. I don't like that you hardcode 0x1badb002. Could you use the macro from multiboot.h ? Also for the comments, I think /* */ is preferred (at least, it is consistent with the rest of GRUB). -- Robert Millan I know my rights; I want my phone call! What use is a phone call… if you are unable to speak? (as seen on /.)