]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitab0002ebcf462edb4d75223f96d7e94d9bbd6f32
tree9c494ebb84afcfae63306c6d8fdcd56028cb80fc
parentf785713cc135ec5ee25dc18741bac092a49c889e
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]