Re: [PATCH 6/8] Allow per-cpu variables to be page-aligned

From: Jeremy Fitzhardinge
Date: Tue Mar 06 2007 - 13:18:40 EST


Rusty Russell wrote:
> Xen wants page-aligned GDT (and PDA must not cross a page-boundary,
> but that doesn't happen at the moment since it's so close to start of
> page). Let's allow page-alignment in general for per-cpu data.
>
> Because larger alignments can use more room, we increase the max
> per-cpu memory to 64k rather than 32k: it's getting a little tight.
>
> Signed-off-by: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
>
> diff -r 213b1ec27001 arch/alpha/kernel/vmlinux.lds.S
> --- a/arch/alpha/kernel/vmlinux.lds.S Tue Mar 06 19:01:59 2007 +1100
> +++ b/arch/alpha/kernel/vmlinux.lds.S Tue Mar 06 19:02:03 2007 +1100
> @@ -69,7 +69,7 @@ SECTIONS
> . = ALIGN(8);
> SECURITY_INIT
>
> - . = ALIGN(64);
> + . = ALIGN(8192);
>

Isn't there a PAGE_SIZE we can use here? PAGE_SIZE_asm?
(ditto all archs)

J
-
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/