Deleted Added
full compact
pthread_md.h (133756) pthread_md.h (133801)
1/*-
2 * Copyright (C) 2003 David Xu <davidxu@freebsd.org>
3 * Copyright (c) 2001 Daniel Eischen <deischen@freebsd.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 10 unchanged lines hidden (view full) ---

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*-
2 * Copyright (C) 2003 David Xu <davidxu@freebsd.org>
3 * Copyright (c) 2001 Daniel Eischen <deischen@freebsd.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 10 unchanged lines hidden (view full) ---

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/lib/libkse/arch/amd64/include/pthread_md.h 133756 2004-08-15 16:28:05Z dfr $
27 * $FreeBSD: head/lib/libkse/arch/amd64/include/pthread_md.h 133801 2004-08-16 03:27:29Z davidxu $
28 */
29/*
30 * Machine-dependent thread prototypes/definitions for the thread kernel.
31 */
32#ifndef _PTHREAD_MD_H_
33#define _PTHREAD_MD_H_
34
28 */
29/*
30 * Machine-dependent thread prototypes/definitions for the thread kernel.
31 */
32#ifndef _PTHREAD_MD_H_
33#define _PTHREAD_MD_H_
34
35#include <stddef.h>
35#include <sys/types.h>
36#include <sys/kse.h>
37#include <machine/sysarch.h>
38#include <ucontext.h>
39
40#define KSE_STACKSIZE 16384
36#include <sys/types.h>
37#include <sys/kse.h>
38#include <machine/sysarch.h>
39#include <ucontext.h>
40
41#define KSE_STACKSIZE 16384
42#define DTV_OFFSET offsetof(struct tcb, tcb_dtv)
41
42#define THR_GETCONTEXT(ucp) \
43 (void)_amd64_save_context(&(ucp)->uc_mcontext)
44#define THR_SETCONTEXT(ucp) \
45 (void)_amd64_restore_context(&(ucp)->uc_mcontext, 0, NULL)
46
47#define PER_KSE
48#undef PER_THREAD

--- 218 unchanged lines hidden ---
43
44#define THR_GETCONTEXT(ucp) \
45 (void)_amd64_save_context(&(ucp)->uc_mcontext)
46#define THR_SETCONTEXT(ucp) \
47 (void)_amd64_restore_context(&(ucp)->uc_mcontext, 0, NULL)
48
49#define PER_KSE
50#undef PER_THREAD

--- 218 unchanged lines hidden ---