pthread_md.h (161841) | pthread_md.h (174127) |
---|---|
1/* 2 * Copyright (c) 2003-2006 Marcel Moolenaar 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 * --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * | 1/* 2 * Copyright (c) 2003-2006 Marcel Moolenaar 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 * --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/lib/libkse/arch/ia64/include/pthread_md.h 161841 2006-09-01 21:25:22Z marcel $ | 26 * $FreeBSD: head/lib/libkse/arch/ia64/include/pthread_md.h 174127 2007-12-01 14:23:29Z rwatson $ |
27 */ 28 29#ifndef _PTHREAD_MD_H_ 30#define _PTHREAD_MD_H_ 31 32#include <sys/kse.h> 33#include <stddef.h> 34#include <ucontext.h> --- 33 unchanged lines hidden (view full) --- 68struct kcb { 69 struct kse_mailbox kcb_kmbx; 70 struct kse *kcb_kse; 71 struct tcb *kcb_curtcb; 72 struct tcb kcb_faketcb; 73}; 74 75static __inline struct tcb * | 27 */ 28 29#ifndef _PTHREAD_MD_H_ 30#define _PTHREAD_MD_H_ 31 32#include <sys/kse.h> 33#include <stddef.h> 34#include <ucontext.h> --- 33 unchanged lines hidden (view full) --- 68struct kcb { 69 struct kse_mailbox kcb_kmbx; 70 struct kse *kcb_kse; 71 struct tcb *kcb_curtcb; 72 struct tcb kcb_faketcb; 73}; 74 75static __inline struct tcb * |
76ia64_get_tcb() | 76ia64_get_tcb(void) |
77{ 78 register char *tp __asm("%r13"); 79 80 return ((struct tcb *)(tp - offsetof(struct tcb, tcb_tp))); 81} 82 83static __inline void 84ia64_set_tcb(struct tcb *tcb) --- 184 unchanged lines hidden --- | 77{ 78 register char *tp __asm("%r13"); 79 80 return ((struct tcb *)(tp - offsetof(struct tcb, tcb_tp))); 81} 82 83static __inline void 84ia64_set_tcb(struct tcb *tcb) --- 184 unchanged lines hidden --- |