aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/linux32/linux32_sysvec.c
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2017-07-30 21:24:20 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2017-07-30 21:24:20 +0000
commitc151945c8645ef2c44d4f06ded23f9c43ea48d98 (patch)
tree6018a73b536aa0a75cb9133ec0a1593927e8ff0e /sys/amd64/linux32/linux32_sysvec.c
parent2e639013ed9884bfc2406d828f30faae1d6cd8ad (diff)
downloadsrc-c151945c8645ef2c44d4f06ded23f9c43ea48d98.tar.gz
src-c151945c8645ef2c44d4f06ded23f9c43ea48d98.zip
Avoid using [LINUX_]SHAREDPAGE constant directly in the vdso code.
This is needed for https://reviews.freebsd.org/D11780. Reported by: kib@
Notes
Notes: svn path=/head/; revision=321728
Diffstat (limited to 'sys/amd64/linux32/linux32_sysvec.c')
-rw-r--r--sys/amd64/linux32/linux32_sysvec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/linux32/linux32_sysvec.c b/sys/amd64/linux32/linux32_sysvec.c
index b50b1bae823e..140d7b9e9612 100644
--- a/sys/amd64/linux32/linux32_sysvec.c
+++ b/sys/amd64/linux32/linux32_sysvec.c
@@ -1062,14 +1062,14 @@ linux_vdso_install(void *param)
linux_shared_page_obj = __elfN(linux_shared_page_init)
(&linux_shared_page_mapping);
- __elfN(linux_vdso_reloc)(&elf_linux_sysvec, LINUX32_SHAREDPAGE);
+ __elfN(linux_vdso_reloc)(&elf_linux_sysvec);
bcopy(elf_linux_sysvec.sv_sigcode, linux_shared_page_mapping,
linux_szsigcode);
elf_linux_sysvec.sv_shared_page_obj = linux_shared_page_obj;
linux_kplatform = linux_shared_page_mapping +
- (linux_platform - (caddr_t)LINUX32_SHAREDPAGE);
+ (linux_platform - (caddr_t)elf_linux_sysvec.sv_shared_page_base);
}
SYSINIT(elf_linux_vdso_init, SI_SUB_EXEC, SI_ORDER_ANY,
(sysinit_cfunc_t)linux_vdso_install, NULL);