[gPXE-devel] [PATCH 1/2] ibft: Update iBFT handling for v1.03 of the spec.

Andrew Morton akpm at linux-foundation.org
Wed Apr 21 17:26:34 EDT 2010


On Fri,  9 Apr 2010 14:21:27 +0000
Konrad Rzeszutek Wilk <konrad at kernel.org> wrote:

> From: Peter Jones <pjones at redhat.com>
> 
> - Use struct acpi_table_ibft instead of struct ibft_table_header
> - Don't do reserve_ibft_region() on UEFI machines (section 1.4.3.1)
> - If ibft_addr isn't initialized when ibft_init() is called, check for
>   ACPI-based tables.
> 
> Author:      Peter Jones <pjones at redhat.com>
> Signed-off-by: Konrad Rzeszutek Wilk <konrad at kernel.org>
> Reviewed-by: Mike Christie <michaelc at cs.wisc.edu>

This should have Peter's Signed-off-by:, please.

>
> ...
>
> +#ifdef CONFIG_ACPI
> +static int __init acpi_find_ibft(struct acpi_table_header *header)
> +{
> +	ibft_addr = (struct acpi_table_ibft *)header;

container_of() would be better here.  And maybe elsewhere, too.

> +	return 0;
> +}
> +#endif /* CONFIG_ACPI */



More information about the gPXE-devel mailing list