Date: Wed, 23 Aug 2006 22:08:00 GMT From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 104870 for review Message-ID: <200608232208.k7NM80bm025706@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608232208.k7NM80bm025706>