aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/entry/vdso/vdso-layout.lds.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/entry/vdso/vdso-layout.lds.S')
-rw-r--r--arch/x86/entry/vdso/vdso-layout.lds.S11
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/x86/entry/vdso/vdso-layout.lds.S b/arch/x86/entry/vdso/vdso-layout.lds.S
index bafa73f09e92..ddd6999b6946 100644
--- a/arch/x86/entry/vdso/vdso-layout.lds.S
+++ b/arch/x86/entry/vdso/vdso-layout.lds.S
@@ -16,17 +16,16 @@ SECTIONS
* segment.
*/
- vvar_start = . - 4 * PAGE_SIZE;
- vvar_page = vvar_start;
-
/* Place all vvars at the offsets in asm/vvar.h. */
#define EMIT_VVAR(name, offset) vvar_ ## name = vvar_page + offset;
#include <asm/vvar.h>
#undef EMIT_VVAR
- pvclock_page = vvar_start + PAGE_SIZE;
- hvclock_page = vvar_start + 2 * PAGE_SIZE;
- timens_page = vvar_start + 3 * PAGE_SIZE;
+ vvar_start = . - 4 * PAGE_SIZE;
+ vvar_page = vvar_start + VVAR_PAGE_OFFSET * PAGE_SIZE;
+ pvclock_page = vvar_start + PVCLOCK_PAGE_OFFSET * PAGE_SIZE;
+ hvclock_page = vvar_start + HVCLOCK_PAGE_OFFSET * PAGE_SIZE;
+ timens_page = vvar_start + TIMENS_PAGE_OFFSET * PAGE_SIZE;
#undef _ASM_X86_VVAR_H
/* Place all vvars in timens too at the offsets in asm/vvar.h. */