arm64: System calls handling
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 5 Mar 2012 11:49:31 +0000 (11:49 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 17 Sep 2012 12:42:08 +0000 (13:42 +0100)
commit7992d60dc46576bc6f6429d87f313462141db6d2
tree2527b2d32e1d9be67c9c9b63a413cdf28406bf4a
parentf668cd1673aa2e645ae98b65c4ffb9dae2c9ac17
arm64: System calls handling

This patch adds support for system calls coming from 64-bit
applications. It uses the asm-generic/unistd.h definitions with the
canonical set of system calls. The private system calls are only used
for 32-bit (compat) applications as 64-bit ones can set the TLS and
flush the caches entirely from user space.

The sys_call_table is just an array defined in a C file and it contains
pointers to the syscall functions. The array is 4KB aligned to allow the
use of the ADRP instruction (longer range ADR) in entry.S.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Acked-by: Olof Johansson <olof@lixom.net>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
arch/arm64/include/asm/stat.h [new file with mode: 0644]
arch/arm64/include/asm/statfs.h [new file with mode: 0644]
arch/arm64/include/asm/syscalls.h [new file with mode: 0644]
arch/arm64/include/asm/unistd.h [new file with mode: 0644]
arch/arm64/kernel/sys.c [new file with mode: 0644]