]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Fri, 7 Sep 2012 15:14:37 +0000 (16:14 +0100)
commit0bfac3fc655ef2bb058351c5029293d3b60f17ef
tree5cd9a0867a3a5a4307fc5df8f807b25736e34672
parent7ea902e1792594da4a3d0afafd3b1f071af8cb24
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>
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]