Date: Sat, 2 Sep 2006 16:20:08 GMT From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 105543 for review Message-ID: <200609021620.k82GK86m032937@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=105543 Change 105543 by gonzo@gonzo_hideout on 2006/09/02 16:19:39 o Change errorneus arguments order for sw instructution. o s/_arm_/_mips_/: remove arm pieces. Affected files ... .. //depot/projects/mips2/src/lib/libpthread/arch/mips/include/pthread_md.h#3 edit Differences ... ==== //depot/projects/mips2/src/lib/libpthread/arch/mips/include/pthread_md.h#3 (text+ko) ==== @@ -100,8 +100,8 @@ { register_t tmp; __asm __volatile( - "lw %1, (%2)\n\t" \ - "sw (%2), %0\n\t" \ + "lw %1, (%2)\n\t" \ + "sw %0, (%2)\n\t" \ : "=r" (val), "=r" (tmp) : "r" (val) , "r" (ptr) : "memory"); return (tmp); } @@ -207,7 +207,7 @@ return (_tcb->tcb_curkcb->kcb_kse); } -void _arm_enter_uts(struct kse_mailbox *km, kse_func_t uts, void *stack, +void _mips_enter_uts(struct kse_mailbox *km, kse_func_t uts, void *stack, size_t stacksz); static __inline int @@ -219,7 +219,7 @@ == 0) { kcb->kcb_curtcb = &kcb->kcb_faketcb; __kcb_swp((int)&kcb->kcb_faketcb.tcb_tp, &_tp); - _arm_enter_uts(&kcb->kcb_kmbx, kcb->kcb_kmbx.km_func, + _mips_enter_uts(&kcb->kcb_kmbx, kcb->kcb_kmbx.km_func, kcb->kcb_kmbx.km_stack.ss_sp, kcb->kcb_kmbx.km_stack.ss_size); /* We should not reach here. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609021620.k82GK86m032937>