Add support for arm and enable on armv7.
authorkettenis <kettenis@openbsd.org>
Fri, 19 Aug 2016 17:39:37 +0000 (17:39 +0000)
committerkettenis <kettenis@openbsd.org>
Fri, 19 Aug 2016 17:39:37 +0000 (17:39 +0000)
regress/sys/kern/noexec/Makefile
regress/sys/kern/noexec/testfly.S

index 964fa00..803bae6 100644 (file)
@@ -1,7 +1,7 @@
-#      $OpenBSD: Makefile,v 1.13 2014/01/10 13:45:00 jsing Exp $
+#      $OpenBSD: Makefile,v 1.14 2016/08/19 17:39:37 kettenis Exp $
 
 .if ${MACHINE} == "sparc64" || ${MACHINE} == "sparc" || \
-    ${MACHINE} == "alpha" || \
+    ${MACHINE} == "alpha" || ${MACHINE} == "armv7" || \
     ${MACHINE_ARCH} == "amd64" || ${MACHINE} == "i386" || \
     ${MACHINE} == "hppa"
 
index 7faa060..259d98c 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: testfly.S,v 1.1 2014/01/10 13:45:00 jsing Exp $       */
+/*     $OpenBSD: testfly.S,v 1.2 2016/08/19 17:39:37 kettenis Exp $    */
 
 /*
  * Copyright (c) 2002,2003 Michael Shalayeff
@@ -53,4 +53,9 @@ LEAF_ENTRY(testfly)
 EXIT(testfly)
 #endif
 
+#ifdef __arm__
+ENTRY(testfly)
+       mov     pc, lr
+#endif
+
        .space 8192