pthread_md.h (133857) | pthread_md.h (135735) |
---|---|
1/*- 2 * Copyright (c) 2003 Jake Burkholder <jake@freebsd.org>. 3 * Copyright (c) 2003 Marcel Moolenaar 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 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * | 1/*- 2 * Copyright (c) 2003 Jake Burkholder <jake@freebsd.org>. 3 * Copyright (c) 2003 Marcel Moolenaar 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 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/lib/libkse/arch/arm/include/pthread_md.h 133857 2004-08-16 14:07:38Z davidxu $ | 27 * $FreeBSD: head/lib/libkse/arch/arm/include/pthread_md.h 135735 2004-09-24 13:02:30Z cognet $ |
28 */ 29 30/* 31 * Machine-dependent thread prototypes/definitions for the thread kernel. 32 */ 33#ifndef _PTHREAD_MD_H_ 34#define _PTHREAD_MD_H_ 35 --- 51 unchanged lines hidden (view full) --- 87 88register struct arm_tp *_tp __asm("%r6"); 89 90#define _tcb ((struct tcb*)((char*)(_tp) - offsetof(struct tcb, tcb_tp))) 91 92/* 93 * The kcb and tcb constructors. 94 */ | 28 */ 29 30/* 31 * Machine-dependent thread prototypes/definitions for the thread kernel. 32 */ 33#ifndef _PTHREAD_MD_H_ 34#define _PTHREAD_MD_H_ 35 --- 51 unchanged lines hidden (view full) --- 87 88register struct arm_tp *_tp __asm("%r6"); 89 90#define _tcb ((struct tcb*)((char*)(_tp) - offsetof(struct tcb, tcb_tp))) 91 92/* 93 * The kcb and tcb constructors. 94 */ |
95struct tcb *_tcb_ctor(struct pthread *); | 95struct tcb *_tcb_ctor(struct pthread *, int); |
96void _tcb_dtor(struct tcb *); 97struct kcb *_kcb_ctor(struct kse *kse); 98void _kcb_dtor(struct kcb *); 99 100/* Called from the KSE to set its private data. */ 101static __inline void 102_kcb_set(struct kcb *kcb) 103{ --- 151 unchanged lines hidden --- | 96void _tcb_dtor(struct tcb *); 97struct kcb *_kcb_ctor(struct kse *kse); 98void _kcb_dtor(struct kcb *); 99 100/* Called from the KSE to set its private data. */ 101static __inline void 102_kcb_set(struct kcb *kcb) 103{ --- 151 unchanged lines hidden --- |