Re: [PATCH v2] x86/boot: Use EFI setup data if provided

From: Junichi Nomura
Date: Fri Mar 29 2019 - 05:37:37 EST


On 3/29/19 6:16 PM, Borislav Petkov wrote:
> On Fri, Mar 29, 2019 at 05:05:50PM +0800, Chao Fan wrote:
>> But in my code, I am not sure which version will be found firstly, so I
>> write this logical, if ACPI20 found, return directly, then consider ACPI 1.0.
>
> Thanks.
>
> Junichi, please add a shorter version of that as a comment to the code,
> above the function name so that it is clear why we're preferring the 2.0
> version.

Sure, I'll add this above __efi_get_rsdp_addr().

/*
* Search EFI system tables for RSDP. If both ACPI_20_TABLE_GUID and
* ACPI_TABLE_GUID are found, take the former, which has more features.
*/

--
Jun'ichi Nomura, NEC Corporation / NEC Solution Innovators, Ltd.