]> granicus.if.org Git - strace/commit
Add support for Altera's Nios-II softcore architecture
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Thu, 6 Feb 2014 17:53:54 +0000 (14:53 -0300)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 6 Feb 2014 20:48:36 +0000 (20:48 +0000)
commit61e426e87ac81be4b4ff9de581635b4ea585624f
tree80a7b3881afe9372d9bd90c8ea2b628f19234d3e
parent3acf4035ea020f54a5fcfd203952e04c4dad48c3
Add support for Altera's Nios-II softcore architecture

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>
linux/nios2/ioctlent.h.in [new file with mode: 0644]
linux/nios2/syscallent.h [new file with mode: 0644]