Commit ae4c7f48 authored by Yury Norov's avatar Yury Norov Committed by Chen Jiahao
Browse files

arm64: ilp32: introduce syscall table for ILP32

maillist inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I7WGZU
CVE: NA

Reference: https://github.com/norov/linux/commits/ilp32-5.2



--------------------------------

Depending on the personality of the task, syscalls has to be dispatched
to either aarch64, aarch32 or aarch64/ilp32 syscall handlers. We add
the support of ILP32 mode in this series, therefore introduce
corresponding syscall table.

Some system calls are wired to aarch32 syscall handlers, as listed in
arch/arm64/kernel/sys_ilp32.c.

For aarch64/ilp32, top halves of syscall arguments are meaningless
anthough not zeroed by hardware. Do that in the delouse_pt_regs()
routine to avoid passing garbage by userspace.

Signed-off-by: default avatarYury Norov <ynorov@caviumnetworks.com>
Signed-off-by: default avatarYury Norov <ynorov@marvell.com>
Signed-off-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>

Conflicts:
	arch/arm64/include/asm/unistd.h
	arch/arm64/include/uapi/asm/unistd.h
	arch/arm64/kernel/Makefile
	arch/arm64/kernel/syscall.c

Signed-off-by: default avatarChen Jiahao <chenjiahao16@huawei.com>
parent e148bdc0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment