[PATCH] ppc64: Implement a vDSO and use it for signal trampoline #2

Milton Miller miltonm at bga.com
Sun Feb 6 19:10:55 EST 2005


Benjamin Herrenschmidt wrote:

> Index: linux-work/arch/ppc64/kernel/vdso32/vdso32_wrapper.S
> ===================================================================
> --- /dev/null   1970-01-01 00:00:00.000000000 +0000
> +++ linux-work/arch/ppc64/kernel/vdso32/vdso32_wrapper.S        
> 2005-01-31 16:25:56.000000000 +1100
> @@ -0,0 +1,12 @@
> +#include <linux/init.h>
> +
> +       .section ".data"
> +
> +       .globl vdso32_start, vdso32_end
> +       .balign 4096
> +vdso32_start:
> +       .incbin "arch/ppc64/kernel/vdso32/vdso32.so"
> +       .balign 4096
> +vdso32_end:
> +
> +       .previous
> Index: linux-work/arch/ppc64/kernel/vdso64/vdso64_wrapper.S
> ===================================================================
> --- /dev/null   1970-01-01 00:00:00.000000000 +0000
> +++ linux-work/arch/ppc64/kernel/vdso64/vdso64_wrapper.S        
> 2005-01-31 16:25:56.000000000 +1100
> @@ -0,0 +1,12 @@
> +#include <linux/init.h>
> +
> +       .section ".data"
> +
> +       .globl vdso64_start, vdso64_end
> +       .balign 4096
> +vdso64_start:
> +       .incbin "arch/ppc64/kernel/vdso64/vdso64.so"
> +       .balign 4096
> +vdso64_end:
> +
> +       .previous

How about putting these with the other page_aligned data, with
	.section ".data.page_aligned"

Also, I don't see anything from <linux/init.h> being used, although
including <asm/page.h> to get PAGE_SIZE would elimintate the magic
4096 number.

milton




More information about the Linuxppc64-dev mailing list