forked from Minki/linux
aafade242f
We can map the vDSO straight from kernel data, saving a few page allocations. As an added bonus, the deleted code contained a memory leak. Signed-off-by: Andy Lutomirski <luto@mit.edu> Link: http://lkml.kernel.org/r/2c4ed5c2c2e93603790229e0c3403ae506ccc0cb.1311277573.git.luto@mit.edu Signed-off-by: H. Peter Anvin <hpa@zytor.com>
22 lines
384 B
ArmAsm
22 lines
384 B
ArmAsm
#include <asm/page_types.h>
|
|
#include <linux/linkage.h>
|
|
#include <linux/init.h>
|
|
|
|
__PAGE_ALIGNED_DATA
|
|
|
|
.globl vdso_start, vdso_end
|
|
.align PAGE_SIZE
|
|
vdso_start:
|
|
.incbin "arch/x86/vdso/vdso.so"
|
|
vdso_end:
|
|
|
|
.previous
|
|
|
|
.globl vdso_pages
|
|
.bss
|
|
.align 8
|
|
.type vdso_pages, @object
|
|
vdso_pages:
|
|
.zero (vdso_end - vdso_start + PAGE_SIZE - 1) / PAGE_SIZE * 8
|
|
.size vdso_pages, .-vdso_pages
|