pthread_md.h (133756) | pthread_md.h (133801) |
---|---|
1/*- 2 * Copyright (c) 2002 Daniel Eischen <deischen@freebsd.org>. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2002 Daniel Eischen <deischen@freebsd.org>. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/lib/libkse/arch/i386/include/pthread_md.h 133756 2004-08-15 16:28:05Z dfr $ | 26 * $FreeBSD: head/lib/libkse/arch/i386/include/pthread_md.h 133801 2004-08-16 03:27:29Z davidxu $ |
27 */ 28/* 29 * Machine-dependent thread prototypes/definitions for the thread kernel. 30 */ 31#ifndef _PTHREAD_MD_H_ 32#define _PTHREAD_MD_H_ 33 | 27 */ 28/* 29 * Machine-dependent thread prototypes/definitions for the thread kernel. 30 */ 31#ifndef _PTHREAD_MD_H_ 32#define _PTHREAD_MD_H_ 33 |
34#include <stddef.h> |
|
34#include <sys/kse.h> 35#include <ucontext.h> 36 37extern int _thr_setcontext(mcontext_t *, intptr_t, intptr_t *); 38extern int _thr_getcontext(mcontext_t *); 39 40#define KSE_STACKSIZE 16384 | 35#include <sys/kse.h> 36#include <ucontext.h> 37 38extern int _thr_setcontext(mcontext_t *, intptr_t, intptr_t *); 39extern int _thr_getcontext(mcontext_t *); 40 41#define KSE_STACKSIZE 16384 |
42#define DTV_OFFSET offsetof(struct tcb, tcb_dtv) |
|
41 42#define THR_GETCONTEXT(ucp) _thr_getcontext(&(ucp)->uc_mcontext) 43#define THR_SETCONTEXT(ucp) _thr_setcontext(&(ucp)->uc_mcontext, 0, NULL) 44 45#define PER_KSE 46#undef PER_THREAD 47 48struct kse; --- 216 unchanged lines hidden --- | 43 44#define THR_GETCONTEXT(ucp) _thr_getcontext(&(ucp)->uc_mcontext) 45#define THR_SETCONTEXT(ucp) _thr_setcontext(&(ucp)->uc_mcontext, 0, NULL) 46 47#define PER_KSE 48#undef PER_THREAD 49 50struct kse; --- 216 unchanged lines hidden --- |