svn commit: r313509 - stable/10/contrib/netbsd-tests/lib/libc/sys

Ngie Cooper ngie at FreeBSD.org
Fri Feb 10 02:37:43 UTC 2017


Author: ngie
Date: Fri Feb 10 02:37:42 2017
New Revision: 313509
URL: https://svnweb.freebsd.org/changeset/base/313509

Log:
  MFC r288444:
  
  This change has no functional impact on ^/stable/10 because arm64 isn't
  supported on 10.x, but it is being done to ease additional backports in
  this test
  
  r288444 (by andrew):
  
  Pass 8 arguments to makecontext on arm64 as this is all we support.
  
  Obtained from:	EuroBSDCon Devsummit

Modified:
  stable/10/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c
==============================================================================
--- stable/10/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c	Fri Feb 10 02:29:39 2017	(r313508)
+++ stable/10/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c	Fri Feb 10 02:37:42 2017	(r313509)
@@ -53,6 +53,8 @@ run(int n, ...)
 	va_start(va, n);
 #if defined(__FreeBSD__) && defined(__amd64__)
 	for (i = 0; i < 5; i++) {
+#elif defined(__FreeBSD__) && defined(__aarch64__)
+	for (i = 0; i < 7; i++) {
 #elif defined(__FreeBSD__) && defined(__mips__)
 	for (i = 0; i < 5; i++) {
 #else
@@ -118,6 +120,10 @@ ATF_TC_BODY(setcontext_link, tc)
 		/* FreeBSD/amd64 only permits up to 6 arguments. */
 		makecontext(&uc[i], (void *)run, 6, i,
 			0, 1, 2, 3, 4);
+#elif defined(__FreeBSD__) && defined(__aarch64__)
+		/* FreeBSD/arm64 only permits up to 8 arguments. */
+		makecontext(&uc[i], (void *)run, 8, i,
+			0, 1, 2, 3, 4, 5, 6);
 #elif defined(__FreeBSD__) && defined(__mips__)
 		/* FreeBSD/mips only permits up to 6 arguments. */
 		makecontext(&uc[i], (void *)run, 6, i,


More information about the svn-src-stable-10 mailing list