Age | Commit message (Collapse) | Author |
|
Changes merged from CMU MK83a version:
* cthreads.h, options.h: Various cleanups.
* call.c, cthread_data.c, sync.c, mig_support.c: Likewise.
* i386/cthreads.h, i386/thread.c, i386/lock.s: Likewise.
* cthread_internals.h: Add decls for internal functions.
(struct cproc): Use vm_offset_t for stack_base and stack_size members.
Use natural_t for context member.
* cprocs.c: Use prototypes for all defns.
* cthreads.c: Likewise.
(cthread_exit): Cast any_t to integer_t before int.
|
|
* i386/thread.c (cthread_sp): Use __thread_stack_pointer.
|
|
* cthreads.h: Fix obsolescent #endif syntax.
* cthread_internals.h: Likewise.
* cancel-cond.c: Likewise.
* stack.c: Likewise.
* cthreads.c: Likewise.
* cprocs.c: Likewise.
* call.c: Likewise.
* i386/thread.c: Likewise.
|
|
* i386/thread.c: Remove superfluous bzero decl,
just include <strings.h> instead.
|
|
* i386/csw.S: #undef __ELF__ before defining it, since
it is usually predefined.
|
|
* i386/csw.S (cproc_prepare): Take address of cthread_body as third
arg, so we don't have to deal with PIC magic to find its address
without producing a text reloc.
* cprocs.c (cproc_create): Pass &cthread_body to cproc_prepare.
|
|
* i386/csw.S: Define __ELF__ too.
|
|
Correctly leave space at top of stack for account for GNU per-thread
variables.
|
|
* i386/csw.S (CALL_MCOUNT): New macro.
(cproc_swtich, cproc_start_wait, cproc_prepare): Use CALL_MCOUNT.
|
|
|
|
|
|
Use it in place of EXT.
|
|
|
|
|
|
|
|
|
|
|
|
|