diff options
author | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2016-05-24 03:04:51 +0300 |
---|---|---|
committer | Christoph Muellner <christoph.muellner@theobroma-systems.com> | 2018-05-29 17:54:30 +0200 |
commit | 785056ea6e3953fc34db27c097b7b25fd6d133c4 (patch) | |
tree | 4f864a834477156746d1613cc98570bbdfd175e5 /arch/arm64/kernel/vdso-ilp32/vdso-ilp32.S | |
parent | 605cb60465134006ab52883ddc4a572ff7bc0501 (diff) |
arm64:ilp32: add vdso-ilp32 and use for signal return
ILP32 VDSO exports following symbols:
__kernel_rt_sigreturn;
__kernel_gettimeofday;
__kernel_clock_gettime;
__kernel_clock_getres.
What shared object to use, kernel selects depending on result of
is_ilp32_compat_task() in arch/arm64/kernel/vdso.c, so it substitutes
correct pages and spec.
Adjusted to move the data page before code pages in sync with
commit 601255ae3c98 ("arm64: vdso: move data page before code pages")
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
Signed-off-by: Yury Norov <ynorov@caviumnetworks.com>
Signed-off-by: Bamvor Jian Zhang <bamv2005@gmail.com>
Diffstat (limited to 'arch/arm64/kernel/vdso-ilp32/vdso-ilp32.S')
-rw-r--r-- | arch/arm64/kernel/vdso-ilp32/vdso-ilp32.S | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm64/kernel/vdso-ilp32/vdso-ilp32.S b/arch/arm64/kernel/vdso-ilp32/vdso-ilp32.S new file mode 100644 index 000000000000..dee65ab79662 --- /dev/null +++ b/arch/arm64/kernel/vdso-ilp32/vdso-ilp32.S @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ + +/* + * Copyright (C) 2012 ARM Limited + * Author: Will Deacon <will.deacon@arm.com> + */ + +#include <linux/init.h> +#include <linux/linkage.h> +#include <linux/const.h> +#include <asm/page.h> + + __PAGE_ALIGNED_DATA + + .globl vdso_ilp32_start, vdso_ilp32_end + .balign PAGE_SIZE +vdso_ilp32_start: + .incbin "arch/arm64/kernel/vdso-ilp32/vdso-ilp32.so" + .balign PAGE_SIZE +vdso_ilp32_end: + + .previous |