Remove limitation of 6 arguments for makecontext() on mips.
This implementation spills additional arguments on the stack so works fine with more than 6 arguments. I believe the check was just copied over from sparc64 (which doesn't support spilling onto the stack) Sponsored by: DARPA / AFRL
This commit is contained in:
parent
80996ef878
commit
b16fa5e718
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=328632
@ -66,7 +66,7 @@ __makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
|
||||
* so that we can mark a context as invalid. Store it in
|
||||
* mc->mc_regs[ZERO] perhaps?
|
||||
*/
|
||||
if (argc < 0 || argc > 6 || ucp == NULL ||
|
||||
if (argc < 0 || ucp == NULL ||
|
||||
ucp->uc_stack.ss_sp == NULL ||
|
||||
ucp->uc_stack.ss_size < MINSIGSTKSZ)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user