Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MiXVG-0003gG-GV for mharc-grub-devel@gnu.org; Tue, 01 Sep 2009 13:50:46 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MiXVE-0003fZ-I2 for grub-devel@gnu.org; Tue, 01 Sep 2009 13:50:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MiXV9-0003dJ-2q for grub-devel@gnu.org; Tue, 01 Sep 2009 13:50:43 -0400 Received: from [199.232.76.173] (port=44069 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiXV8-0003ct-R6 for grub-devel@gnu.org; Tue, 01 Sep 2009 13:50:38 -0400 Received: from mail-bw0-f222.google.com ([209.85.218.222]:47185) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MiXV8-0005Fc-6d for grub-devel@gnu.org; Tue, 01 Sep 2009 13:50:38 -0400 Received: by bwz22 with SMTP id 22so198842bwz.42 for ; Tue, 01 Sep 2009 10:50:37 -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; bh=fL516Bl61VVZ4C90XoaUCgEuz9xcVOBHNCdE01+sO10=; b=aBd9Qt/RRmCQrh4evdvb6/YpJwXDKdLqh5gjwQ1/NkucTwPCTsvYYiDVfXOgnOKYbo BR3biRKbPvM/WJ2IHd5ZATKSbBVHkqUMZFVsWZgaYAPYK1cZdT30fkUIj+Uv9BgjnJIL NQJu0bGyJkieJgONYdE2WydDPJuDf0FeOfnl8= 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; b=DaAZjKgX1F/8BkJpRTR5z9EUgxBereKW2IVBEjdBlpogSnA2nhxN999rK/zkka/YXL Jfl5kNkjq95M98cCNYb3a6WssQbK0Y0PLmisk7BXYVx2YgsmCat6ZIePvy1JSAFXfYyY 2HdTEj9wyNiwzd348drSZ1xjrih7I8v9165tY= MIME-Version: 1.0 Received: by 10.204.160.143 with SMTP id n15mr5737809bkx.183.1251827437089; Tue, 01 Sep 2009 10:50:37 -0700 (PDT) In-Reply-To: References: Date: Tue, 1 Sep 2009 19:50:36 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [RFC] multiboot ammendment firmware info 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, 01 Sep 2009 17:50:44 -0000 On Tue, Sep 1, 2009 at 5:45 PM, Vladimir 'phcoder' Serbinenko wrote: > Hello I propose to define following additional structures for multiboot: > If flags[11] is set the field in addresses 88-95 contains an address > of RSDT as defined in ACPI specification > If flags[12] is set the field in addresses 96-103 contains an address > of SMBIOS anchor as defined in DMI specification > If flags[13] is set 2 fields are defined on addresses 104-107 resp 108-116 > First field is firmware type > 0 - Unknown firmware or firmware unavailable. In this case only > possible communication with firmware if any is possible only through > multiboot information (e.g. vbe control pointer). Second field is in > this case invalid > 1 - Coreboot. Does coreboot provides any services other than vbe to > make distinguishing between Coreboot and no firmware wothy? > 2 - 32-bit OFW. Second field contains OFW call handle > 3 - 64-bit OFW. Second field contains OFW call handle > 4 - 32-bit EFI. Second field contains pointer to EFI system table. > 5 - 64-bit EFI. Second field contains pointer to EFI system table. > All other values are reserved for future expansion Sorry I forgot BIOS. So my proposition is: 0 - Unknown firmware or firmware unavailable. In this case only possible communication with firmware if any is possible only through multiboot information (e.g. vbe control pointer). Second field is in this case invalid 1 - Coreboot. Does coreboot provides any services other than vbe to make distinguishing between Coreboot and no firmware wothy? 2 - BIOS. 16-bit mode BIOS interrupts are available. Second field is invalid 3 - 32-bit OFW. Second field contains OFW call handle 4 - 64-bit OFW. Second field contains OFW call handle 5 - 32-bit EFI. Second field contains pointer to EFI system table. 6 - 64-bit EFI. Second field contains pointer to EFI system table. All other values are reserved for future expansion Remark 1: firmware type only speaks about type and not quality of firmware. Any firmware call may hang, crash, malfunction or corrupt memory. Relying on firmware especially for non-firmware tasks is discouraged Remark 2: In case of EFI booter has to call EfiExitBootServices Another subject for discussion - if OS wants to make calls to EFI from protected mode it has to call set_virtual_address_map and for this it needs information about memory occupied by firmware do we add an additional pointer which contains an array of efi_memory_descriptors describing just the firmware or do we try to add this information to multiboot memory map? > -- > Regards > Vladimir 'phcoder' Serbinenko > > Personal git repository: http://repo.or.cz/w/grub2/phcoder.git > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git