]> git.pond.sub.org Git - empserver/commit
Redesign interface to machine-dependent code to cleanse lwp.c of
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 10 Dec 2005 19:28:24 +0000 (19:28 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 10 Dec 2005 19:28:24 +0000 (19:28 +0000)
commit9e3db08fdad8cd637b33e00f8e2ae60161f909d3
tree20df390b50ea3d9528d17d1447cc6cae932fa4bb
parent2218a7a9a1ed2c7886a06c2a1f9581ff94e742e0
Redesign interface to machine-dependent code to cleanse lwp.c of
machine-dependencies:
(lwpNewContext): New, factored out of lwpCreate().
(lwpSwitchContext): New, factored out of lwpReschedule().
(LWP_EXTRASTACK, STKALIGN, lwpInitContext, lwpSave, lwpRestore): Move
to arch.c.  Remove for UCONTEXT, else static linkage unless macro or
AIX32.

(lwpReschedule): Skip lwpStatus() when not actually switching.

(LwpStackGrowsDown): New.
(lwpInitSystem): Initialize it.
(lwpStackCheck, lwpStackCheckUsed): Use it.
src/lib/lwp/arch.c
src/lib/lwp/lwp.c
src/lib/lwp/lwpint.h