-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86-64, vdso: Do not allocate memory for the vDSO
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>
- Loading branch information
Andy Lutomirski
authored and
H. Peter Anvin
committed
Jul 21, 2011
1 parent
ae7bd11
commit aafade2
Showing
2 changed files
with
19 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
#include <asm/page_types.h> | ||
#include <linux/linkage.h> | ||
#include <linux/init.h> | ||
|
||
__INITDATA | ||
__PAGE_ALIGNED_DATA | ||
|
||
.globl vdso_start, vdso_end | ||
.align PAGE_SIZE | ||
vdso_start: | ||
.incbin "arch/x86/vdso/vdso.so" | ||
vdso_end: | ||
|
||
__FINIT | ||
.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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters