]> 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>
Wed, 5 Sep 2012 15:35:52 +0000 (16:35 +0100)
commit8389ffa8dae92473996c6fd3ab3a223c8af80c82
tree8c4306d7c88f8f3763d7dffbe1892816e8bb413c
parent2aba8c157ccf1ba1336ae5bd3cc248401348bdac
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]