mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
sparc: Fix 32-bit makecontext arg passing.
test-makecontext3 fails because we fill in the argument stack slots past the 5th using the wrong index.
This commit is contained in:
@ -77,7 +77,7 @@ __makecontext (ucontext_t *ucp, void (*func) (void), int argc, ...)
|
||||
if (i < 6)
|
||||
ucp->uc_mcontext.gregs[REG_O0 + i] = arg;
|
||||
else
|
||||
sp[i + 23] = arg;
|
||||
sp[i + 23 - 6] = arg;
|
||||
}
|
||||
|
||||
va_end (ap);
|
||||
|
Reference in New Issue
Block a user