diff options
author | ngie <ngie@FreeBSD.org> | 2017-02-10 02:37:42 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-02-10 02:37:42 +0000 |
commit | e6dab29bcddc780560f7aaa97d76a59204b6e83e (patch) | |
tree | 00efe77bf821207d164033abc5d64a95881040b4 /contrib/netbsd-tests | |
parent | ce43e48bc4fe37e414f63ac9b8bc9b234b4fed23 (diff) | |
download | FreeBSD-src-e6dab29bcddc780560f7aaa97d76a59204b6e83e.zip FreeBSD-src-e6dab29bcddc780560f7aaa97d76a59204b6e83e.tar.gz |
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
Diffstat (limited to 'contrib/netbsd-tests')
-rw-r--r-- | contrib/netbsd-tests/lib/libc/sys/t_getcontext.c | 6 |
1 files changed, 6 insertions, 0 deletions
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, |