nios2: System calls handling
authorLey Foon Tan <lftan@altera.com>
Thu, 6 Nov 2014 07:19:57 +0000 (15:19 +0800)
committerLey Foon Tan <lftan@altera.com>
Mon, 8 Dec 2014 04:55:58 +0000 (12:55 +0800)
commit1000197d801329804d30094aef5dba0265204d17
tree9c494ebb84afcfae63306c6d8fdcd56028cb80fc
parent19f4c6b5afb92d405009cb8801bde3edc9205dc0
nios2: System calls handling

This patch adds support for system calls from userspaces. It uses the
asm-generic/unistd.h definitions with architecture spcific syscall.
The sys_call_table is just an array defined in a C file and it contains
pointers to the syscall functions.

Signed-off-by: Ley Foon Tan <lftan@altera.com>
arch/nios2/include/asm/syscall.h [new file with mode: 0644]
arch/nios2/include/asm/syscalls.h [new file with mode: 0644]
arch/nios2/include/uapi/asm/unistd.h [new file with mode: 0644]
arch/nios2/kernel/sys_nios2.c [new file with mode: 0644]
arch/nios2/kernel/syscall_table.c [new file with mode: 0644]