linux/mips/syscallent.h \
linux/mips/userent.h \
linux/mtd-abi.h \
+ linux/nios2/arch_regs.c \
+ linux/nios2/get_error.c \
+ linux/nios2/get_scno.c \
+ linux/nios2/get_syscall_args.c \
+ linux/nios2/ioctls_arch0.h \
+ linux/nios2/ioctls_inc0.h \
+ linux/nios2/print_pc.c \
+ linux/nios2/syscallent.h \
linux/or1k/arch_regs.c \
linux/or1k/get_error.c \
linux/or1k/get_scno.c \
return 0;
}
#endif /* SH */
+
+#ifdef NIOS2
+SYS_FUNC(cacheflush)
+{
+ if (entering(tcp)) {
+ /* addr and len */
+ tprintf("%#lx, %lu", tcp->u_arg[0], tcp->u_arg[3]);
+ /* scope and flags (cache type) are currently ignored */
+ }
+ return 0;
+}
+#endif /* NIOS2 */
arch=microblaze
AC_DEFINE([MICROBLAZE], 1, [Define for the MicroBlaze architecture.])
;;
+nios2*)
+ arch=nios2
+ AC_DEFINE([NIOS2], 1, [Define for the Nios-II architecture.])
+ ;;
+
or1k*)
arch=or1k
AC_DEFINE([OR1K], 1, [Define for the OpenRISC 1000 architecture.])
--- /dev/null
+static struct user_pt_regs nios2_regs;
+# define ARCH_REGS_FOR_GETREGSET nios2_regs
--- /dev/null
+/*
+ * The system call convention specifies that r2 contains the return
+ * value on success or a positive error number on failure. A flag
+ * indicating successful completion is written to r7; r7=0 indicates
+ * the system call success, r7=1 indicates an error. The positive
+ * errno value written in r2.
+ */
+if (check_errno && nios2_regs.regs[7]) {
+ tcp->u_rval = -1;
+ tcp->u_error = nios2_regs.regs[2];
+} else {
+ tcp->u_rval = nios2_regs.regs[2];
+}
--- /dev/null
+scno = nios2_regs.regs[2];
--- /dev/null
+tcp->u_arg[0] = nios2_regs.regs[4];
+tcp->u_arg[1] = nios2_regs.regs[5];
+tcp->u_arg[2] = nios2_regs.regs[6];
+tcp->u_arg[3] = nios2_regs.regs[7];
+tcp->u_arg[4] = nios2_regs.regs[8];
+tcp->u_arg[5] = nios2_regs.regs[9];
--- /dev/null
+/* Generated by ioctls_gen.sh from definitions found in $linux/arch/nios2/include/ tree. */
--- /dev/null
+#include "32/ioctls_inc.h"
--- /dev/null
+tprintf(fmt, nios2_regs.regs[PTR_EA]);
--- /dev/null
+#define ARCH_sys_mmap sys_mmap_pgoff
+#include "32/syscallent.h"
+[244] = {4, 0, sys_cacheflush, "cacheflush"},
+[245 ... 259] = { },