summaryrefslogtreecommitdiff
path: root/linux/nios2
Commit message (Collapse)AuthorAge
* Revert "Add support for Altera's Nios-II softcore architecture"Dmitry V. Levin2014-02-14
| | | | | | | | | | The patch originally submitted by Ezequiel García was OK, but I somehow managed to mangle it so that most of the patch was not applied. According to Ezequiel García, an architecture port based on the generic syscall ABI is in progress. This reverts commit 61e426e87ac81be4b4ff9de581635b4ea585624f.
* Add support for Altera's Nios-II softcore architectureEzequiel Garcia2014-02-06
This commit adds strace support for Altera's Nios-II official kernel port as found in git://git.rocketboards.org/linux-socfpga.git Notice that this an out-of-tree kernel architectural port, and uses the legacy (non-generic) system call ABI. In particular, the port doesn't support PTRACE_GETREGSET, so the implementation is based on PTRACE_GETREGS. Given it's mandatory for new architectures to support the generic syscall ABI and PTRACE_GETREGSET, if the nios2 architecure is ever mainlined, the strace support will have to be re-factored accordingly. * linux/nios2/ioctlent.h.in: New file. * linux/nios2/syscallent.h: Likewise. * Makefile.am (EXTRA_DIST): Add linux/nios2/ioctlent.h.in and linux/nios2/syscallent.h. * configure.ac: Add NIOS2 to the list of supported architectures. * defs.h [NIOS2]: Use register reading system. * process.c (struct_user_offsets): Add NIOS2 support. * syscall.c (get_regs, get_scno, get_syscall_args, get_syscall_result, get_error): Likewise. * util.c (change_syscall): Likewise. * mem.c (sys_getpagesize): Define on NIOS2. * system.c [NIOS2] (sys_cacheflush, sys_nios2cmpxchg): New functions. Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Acked-by: Mike Frysinger <vapier@gentoo.org>