Skip to content

Commit 9f8514c

Browse files
t-8chKAGA-KOKO
authored andcommitted
x86/vdso: Place vdso_data at beginning of vvar page
The offset of the vdso_data only has historic reasons, as back then other vvars also existed and offset 0 was already used. (See commit 8c49d9a ("x86-64: Clean up vdso/kernel shared variables")) Over time most other vvars got removed and offset 0 is free again. Moving vdso_data to the beginning of the vvar page aligns x86 with other architectures and opens up the way for the removal of the custom x86 vvar machinery. Signed-off-by: Thomas Weißschuh <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent dd93745 commit 9f8514c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/include/asm/vvar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ extern char __vvar_page;
5858

5959
/* DECLARE_VVAR(offset, type, name) */
6060

61-
DECLARE_VVAR(128, struct vdso_data, _vdso_data)
61+
DECLARE_VVAR(0, struct vdso_data, _vdso_data)
6262

6363
#if !defined(_SINGLE_DATA)
6464
#define _SINGLE_DATA

0 commit comments

Comments
 (0)