From owner-p4-projects@FreeBSD.ORG Wed Aug 23 22:08:05 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 2D96216A4E2; Wed, 23 Aug 2006 22:08:05 +0000 (UTC) X-Original-To: perforce@FreeBSD.org 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 08F5F16A4E0 for ; Wed, 23 Aug 2006 22:08:05 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D83E43D5F for ; Wed, 23 Aug 2006 22:08:00 +0000 (GMT) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k7NM80vw025711 for ; Wed, 23 Aug 2006 22:08:00 GMT (envelope-from gonzo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k7NM80bm025706 for perforce@freebsd.org; Wed, 23 Aug 2006 22:08:00 GMT (envelope-from gonzo@FreeBSD.org) Date: Wed, 23 Aug 2006 22:08:00 GMT Message-Id: <200608232208.k7NM80bm025706@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gonzo@FreeBSD.org using -f From: Oleksandr Tymoshenko To: Perforce Change Reviews Cc: Subject: PERFORCE change 104870 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Aug 2006 22:08:05 -0000 http://perforce.freebsd.org/chv.cgi?CH=104870 Change 104870 by gonzo@gonzo_hideout on 2006/08/23 22:07:30 o replace amd64 bits with MIPS stubs. Affected files ... .. //depot/projects/mips2/src/lib/libpthread/arch/mips/mips/context.S#2 edit Differences ... ==== //depot/projects/mips2/src/lib/libpthread/arch/mips/mips/context.S#2 (text+ko) ==== @@ -38,17 +38,9 @@ .weak _C_LABEL(_thr_setcontext) .set _C_LABEL(_thr_setcontext), _C_LABEL(__thr_setcontext) -ENTRY(__thr_setcontext) +LEAF(__thr_setcontext) /* Check for NULL pointer. */ - cmp r0, #0 - moveq r0, #-1 - moveq pc, lr - cmp r2, #0 - strne r1, [r2] - ldr r1, [r0, #(16 * 4)] /* CPSR */ - msr cpsr, r1 - ldmia r0, {r0-r15} - mov pc, lr + j ra /* XXX: FP bits ? */ /* @@ -60,20 +52,6 @@ .weak _C_LABEL(_thr_getcontext) .set _C_LABEL(_thr_getcontext), _C_LABEL(__thr_getcontext) -ENTRY(__thr_getcontext) +LEAF(__thr_getcontext) /* Check for NULL pointer. */ - cmp r0, #0 - moveq r0, #-1 - moveq pc, lr - stmia r0, {r1-r14} - mov r1, #1 - str r1, [r0] /* Return 1 from setcontext */ - str lr, [r0, #(15 * 4)] /* PC */ - mrs r1, cpsr - str r1, [r0, #(16 * 4)] /* CPSR */ - mov r0, #0 /* Return 0. */ - mov pc, lr - -ENTRY(_arm_enter_uts) - add sp, r2, r3 /* Stack addr + size. */ - mov pc, r1 + j ra