Author: andrew
Date: Thu Oct  1 09:53:12 2015
New Revision: 288444
URL: https://svnweb.freebsd.org/changeset/base/288444

Log:
  Pass 8 arguments to makecontext on arm64 as this is all we support.
  
  Obtained from:        EuroBSDCon Devsummit
  Sponsored by: ABT Systems Ltd

Modified:
  head/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c

Modified: head/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c       Thu Oct  1 
09:44:15 2015        (r288443)
+++ head/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c       Thu Oct  1 
09:53:12 2015        (r288444)
@@ -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++) {
 #else
        for (i = 0; i < 9; i++) {
 #endif
@@ -116,6 +118,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);
 #else
                makecontext(&uc[i], (void *)run, 10, i,
                        0, 1, 2, 3, 4, 5, 6, 7, 8);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to