libthread: use consistent stack calculation code in makecontext

Also reduce duplication: makecontext is per-arch not per-os-arch.

May fix #353.
This commit is contained in:
Russ Cox 2020-01-19 22:39:22 -05:00
parent ac8042dfa9
commit 41b3e8b989
11 changed files with 36 additions and 83 deletions

View file

@ -45,9 +45,9 @@ Contains parts of an earlier library that has:
===
The above notices do *NOT* apply to Linux-sparc64-context.S
or to Linux-sparc64-swapcontext.c. Those are functions from
The above notices do *NOT* apply to Linux-sparc64-context.S
or to sparc64-ucontext.c. Those are functions from
the GNU C library and are provided for systems that use the GNU C
library but somehow are missing those functions. They are
library but somehow are missing those functions. They are
distributed under the Lesser GPL; see COPYING.SPARC64-CONTEXT.