multiboot ammendment firmware info
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
Signature · 4 lines
Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
Quoted 10 lines · Vladimir 'phcoder' Serbinenko
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
Quoted 8 lines
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?
Quoted 6 lines
--
Regards
Vladimir 'phcoder' SerbinenkoPersonal git repository: http://repo.or.cz/w/grub2/phcoder.git
Signature · 4 lines
Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
Quoted 4 lines · Vladimir 'phcoder' Serbinenko
Quoted 2 lines
If flags[13] is set 2 fields are defined on addresses 104-107 resp 108-116 First field is firmware type
2 - BIOS. 16-bit mode BIOS interrupts are available. Second field is invalid 5 - 32-bit EFI. Second field contains pointer to EFI system table.
What about on Apple's EFI with its "compatibility" BIOS also activated?
Don't both firmware interfaces work then, and one could theoretically
want to pass both EFI and BIOS as parameter here?
-Isaac
Quoted 6 lines · Isaac Dupree
Quoted 5 lines · Vladimir 'phcoder' Serbinenko
Quoted 4 lines
If flags[13] is set 2 fields are defined on addresses 104-107 resp 108-116
First field is firmware type
Quoted 8 lines
Quoted 3 lines
2 - BIOS. 16-bit mode BIOS interrupts are available. Second field is invalid
5 - 32-bit EFI. Second field contains pointer to EFI system table.What about on Apple's EFI with its "compatibility" BIOS also activated? Don't both firmware interfaces work then, and one could theoretically want to pass both EFI and BIOS as parameter here?
If grub is launched from CSM it doesn't have EST pointer. Unless devising special workarounds launching CSM you lose EFI access
Quoted 8 lines
-Isaac
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 4 lines
Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
Quoted 9 lines
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_mapand for this it needs information about memory occupied by firmware do we add an additional pointer which contains an array ofefi_memory_descriptorsdescribing just the firmware or do we try to add this information to multiboot memory map?
I think including the information in the multiboot memory map is fine as
long as there's a flag added that specified that the memory is in use by EFI (if that cannot be done compatibly, a separate memory list is fine).
--S
Quoting Vladimir 'phcoder' Serbinenko, who wrote the following on Tue, 1...:
Quoted 5 lines
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
Do you want these as separate flags, or do you want to define 1 new flag to
indicate addresses 88-95 contains a pointer to a linked list of firmware table structures, each describing a specific table and how to find it (I know you're not a fan of indirection here -- I'm thinking of conserving flag bits).
Quoted 6 lines
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
Quoted 8 lines
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
Looks good to me.
--S