  #else
  #define ADDRESS_OFFSET 0
  #endif
- 
- #define FAILED 0
---- ltp-20130109.orig/testcases/kernel/syscalls/sysctl/sysctl01.c
-+++ ltp-20130109/testcases/kernel/syscalls/sysctl/sysctl01.c
-@@ -56,13 +56,17 @@ char *TCID = "sysctl01";
- int TST_TOTAL = 3;
- 
+--- a/testcases/kernel/syscalls/sysctl/sysctl01.c
++++ b/testcases/kernel/syscalls/sysctl/sysctl01.c
+@@ -62,9 +62,13 @@
  static int sysctl(int *name, int nlen, void *oldval, size_t * oldlenp,
  		  void *newval, size_t newlen)
  {

+sendmmsg 269
+cacheflush 0x1002
+set_tls 0x1005
--- ltp-20130109.orig/testcases/kernel/include/order
+++ ltp-20130109/testcases/kernel/include/order
@@ -1,5 +1,6 @@
+aarch64
 arm
 hppa
 i386
 ia64
 powerpc64
--- ltp-20130109.orig/testcases/kernel/include/regen.sh
+++ ltp-20130109/testcases/kernel/include/regen.sh
@@ -25,11 +25,11 @@ cat << EOF > "${output_pid}"
 #include <sys/syscall.h>
 #include "cleanup.c"
 
 #define syscall(NR, ...) ({ \\
 	int __ret; \\
-	if (NR == 0) { \\
+	if (NR == __LTP__NR_INVALID_SYSCALL) { \\
 		errno = ENOSYS; \\
 		__ret = -1; \\
 	} else { \\
 		__ret = syscall(NR, ##__VA_ARGS__); \\
 	} \\
@@ -69,15 +69,16 @@ for arch in $(cat "${srcdir}/order") ; d
 done
 
 echo -n "Generating stub list ... "
 echo "" >> "${output_pid}"
 echo "/* Common stubs */" >> "${output_pid}"
+echo "#define __LTP__NR_INVALID_SYSCALL -1" >> "${output_pid}"
 for nr in $(awk '{print $1}' "${srcdir}/"*.in | sort -u) ; do
 	nr="__NR_$nr"
 	cat <<-EOF >> "${output_pid}"
 	# ifndef $nr
-	#  define $nr 0
+	#  define $nr __LTP__NR_INVALID_SYSCALL
 	# endif
 	EOF
 done
 echo "#endif" >> "${output_pid}"
 
--- ltp-20130109.orig/testcases/kernel/mem/shmt/shmt09.c
+++ ltp-20130109/testcases/kernel/mem/shmt/shmt09.c
@@ -59,11 +59,11 @@ int TST_TOTAL = 4;		/* Total number of t
 
 #ifdef __ia64__
 #define INCREMENT 		8388608	/* 8Mb */
 #elif defined (__mips__)  ||  defined (__hppa__) || defined (__sparc__)
 #define INCREMENT		262144	/* 256Kb */

 }
 
 #define SIZE(x) sizeof(x)/sizeof(x[0])
--- a/testcases/kernel/syscalls/sysctl/sysctl03.c
+++ b/testcases/kernel/syscalls/sysctl/sysctl03.c
@@ -82,9 +82,13 @@
 int sysctl(int *name, int nlen, void *oldval, size_t * oldlenp,
 	   void *newval, size_t newlen)
 {
