From e6dab29bcddc780560f7aaa97d76a59204b6e83e Mon Sep 17 00:00:00 2001 From: ngie Date: Fri, 10 Feb 2017 02:37:42 +0000 Subject: 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 --- contrib/netbsd-tests/lib/libc/sys/t_getcontext.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'contrib/netbsd-tests/lib/libc') diff --git a/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c b/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c index b80d4e1..9f21b3e 100644 --- a/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c +++ b/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c @@ -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, -- cgit v1.1