[PATCH 2/6] nds32: add NDS32 support to strace Makefile

Macpaul Lin macpaul at andestech.com
Fri Feb 11 09:37:57 UTC 2011


Add NDS32 architecture support in Makefile.am, configure.ac, defs.h.

Signed-off-by: Macpaul Lin <macpaul at andestech.com>
---
 Makefile.am  |    1 +
 configure.ac |    4 ++++
 defs.h       |    3 ++-
 3 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index fd2a6c3..e02c694 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -47,6 +47,7 @@ EXTRA_DIST = $(man_MANS) errnoent.sh signalent.sh syscallent.sh ioctlsort.c \
 	     linux/mips/ioctlent.sh linux/mips/errnoent.h \
 	     linux/mips/ioctlent.h linux/mips/signalent.h \
 	     linux/mips/syscallent.h \
+	     linux/nds32/syscallent.h \
 	     linux/powerpc/syscallent.h \
 	     linux/powerpc/ioctlent.h \
 	     linux/s390/ioctlent.h \
diff --git a/configure.ac b/configure.ac
index 5d56dab..1d78e03 100644
--- a/configure.ac
+++ b/configure.ac
@@ -68,6 +68,10 @@ sparc*)
 	arch=sparc
 	AC_DEFINE([SPARC], 1, [Define for the SPARC architecture.])
 	;;
+nds32*)
+	arch=nds32
+	AC_DEFINE([NDS32], 1, [Define for the NDS32 architecture.])
+	;;
 mips*)
 	arch=mips
 	AC_DEFINE([MIPS], 1, [Define for the MIPS architecture.])
diff --git a/defs.h b/defs.h
index bccffbc..d2845c1 100644
--- a/defs.h
+++ b/defs.h
@@ -406,7 +406,8 @@ struct tcb {
 # if defined(ALPHA) || defined(AVR32) || defined(SPARC) || defined(SPARC64) \
   || defined(POWERPC) || defined(IA64) || defined(HPPA) \
   || defined(SH) || defined(SH64) || defined(S390) || defined(S390X) \
-  || defined(ARM) || defined(MIPS) || defined(BFIN) || defined(TILE)
+  || defined(ARM) || defined(MIPS) || defined(BFIN) || defined(TILE) \
+  || defined(NDS32)
 #  define TCB_WAITEXECVE 02000	/* ignore SIGTRAP after exceve */
 # endif
 # define TCB_CLONE_THREAD  010000 /* CLONE_THREAD set in creating syscall */
-- 
1.7.3.5





More information about the Strace-devel mailing list