Re: [patch 6/6] x86, apic: use .apicdrivers section to find the listof apic drivers

From: Cyrill Gorcunov
Date: Fri May 20 2011 - 10:35:12 EST


On 05/20/2011 03:45 AM, Suresh Siddha wrote:
> This will enable each apic driver to be self-contained and eliminate the need
> for apic_probe[].
>
> Apic probe will now depend on the order in which apic drivers are listed in
> the .apicdrivers section. Ordering of apic driver files in the Makefile
> and the macros apic_driver()/apic_drivers() help enforce the desired order.
>
> Signed-off-by: Suresh Siddha <suresh.b.siddha@xxxxxxxxx>
> ---
...
> Index: linux-2.6-tip/arch/x86/kernel/vmlinux.lds.S
> ===================================================================
> --- linux-2.6-tip.orig/arch/x86/kernel/vmlinux.lds.S
> +++ linux-2.6-tip/arch/x86/kernel/vmlinux.lds.S
> @@ -305,6 +305,12 @@ SECTIONS
> __iommu_table_end = .;
> }
>

Seems we miss ALIGN here, no?

. = ALIGN(8);

> + .apicdrivers : AT(ADDR(.apicdrivers) - LOAD_OFFSET) {
> + __apicdrivers = .;
> + *(.apicdrivers);
> + __apicdrivers_end = .;
> + }
> +
...
--
Cyrill
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/