From owner-p4-projects Sun Dec 1 21:10:23 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 2E39237B404; Sun, 1 Dec 2002 21:10:21 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8FC937B401 for ; Sun, 1 Dec 2002 21:10:20 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5618A43EBE for ; Sun, 1 Dec 2002 21:10:20 -0800 (PST) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id gB256HmV011259 for ; Sun, 1 Dec 2002 21:06:17 -0800 (PST) (envelope-from marcel@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gB256HRg011254 for perforce@freebsd.org; Sun, 1 Dec 2002 21:06:17 -0800 (PST) Date: Sun, 1 Dec 2002 21:06:17 -0800 (PST) Message-Id: <200212020506.gB256HRg011254@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to marcel@freebsd.org using -f From: Marcel Moolenaar Subject: PERFORCE change 21799 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://perforce.freebsd.org/chv.cgi?CH=21799 Change 21799 by marcel@marcel_nfs on 2002/12/01 21:06:01 Argh... I forgot we had a broken header file that merely made libc_r compile and I obviously didn't pay attention to the merge conflicts. This is the working version... Affected files ... .. //depot/projects/ia64/lib/libc_r/uthread/pthread_private.h#14 edit Differences ... ==== //depot/projects/ia64/lib/libc_r/uthread/pthread_private.h#14 (text+ko) ==== @@ -101,17 +101,21 @@ (jb)[0]._jb[R_RA + 4] = (long)(ra); \ (jb)[0]._jb[R_T12 + 4] = (long)(ra); \ } while (0) -#elif defined(__ia64__) +#elif defined(__ia64__) +#define GET_BSP_JB(jb) (*((unsigned long*)JMPBUF_ADDR_OF(jb,J_BSP))) #define GET_STACK_JB(jb) (*((unsigned long*)JMPBUF_ADDR_OF(jb,J_SP))) -#define GET_STACK_SJB(sjb) (*((unsigned long*)JMPBUF_ADDR_OF(sjb,J_SP))) -#define GET_STACK_UC(ucp) ((ucp)->uc_mcontext.mc_sp) -#define SET_STACK_JB(jb, stk) GET_STACK_JB(jb) = (long)(stk) -#define SET_STACK_SJB(sjb, stk) GET_STACK_SJB(sjb) = (long)(stk) -#define SET_STACK_UC(ucp, stk) (ucp)->uc_mcontext.mc_sp = (unsigned long)(stk) -#define FP_SAVE_UC(ucp) -#define FP_RESTORE_UC(ucp) -#define SET_RETURN_ADDR_JB(jb, ra) \ - (*((unsigned long*)JMPBUF_ADDR_OF(jb,J_B0)) = (long)(ra)) +#define GET_STACK_SJB(sjb) GET_STACK_JB(sjb) +#define SET_RETURN_ADDR_JB(jb, ra) \ +do { \ + *((unsigned long*)JMPBUF_ADDR_OF(jb,J_B0)) = ((long*)(ra))[0]; \ + *((unsigned long*)JMPBUF_ADDR_OF(jb,J_PFS)) &= ~0x1FFFFFFFFFUL; \ +} while (0) +#define SET_STACK_JB(jb, stk, sz) \ +do { \ + UPD_STACK_JB(jb, stk + sz - 16); \ + GET_BSP_JB(jb) = (long)(stk); \ +} while (0) +#define UPD_STACK_JB(jb, stk) GET_STACK_JB(jb) = (long)(stk) #else #error "Don't recognize this architecture!" #endif @@ -210,21 +214,6 @@ } \ _thread_kern_new_state = 0; \ } while (0) -#elif defined(__ia64__) -#define GET_BSP_JB(jb) (*((unsigned long*)JMPBUF_ADDR_OF(jb,J_BSP))) -#define GET_STACK_JB(jb) (*((unsigned long*)JMPBUF_ADDR_OF(jb,J_SP))) -#define GET_STACK_SJB(sjb) GET_STACK_JB(sjb) -#define SET_RETURN_ADDR_JB(jb, ra) \ -do { \ - *((unsigned long*)JMPBUF_ADDR_OF(jb,J_B0)) = ((long*)(ra))[0]; \ - *((unsigned long*)JMPBUF_ADDR_OF(jb,J_PFS)) &= ~0x1FFFFFFFFFUL; \ -} while (0) -#define SET_STACK_JB(jb, stk, sz) \ -do { \ - UPD_STACK_JB(jb, stk + sz - 16); \ - GET_BSP_JB(jb) = (long)(stk); \ -} while (0) -#define UPD_STACK_JB(jb, stk) GET_STACK_JB(jb) = (long)(stk) #else #define PTHREAD_ASSERT(cond, msg) #define PTHREAD_ASSERT_NOT_IN_SYNCQ(thrd) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message