tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rump locking fix



In article <rmiehhd2aq6.fsf%fnord.ir.bbn.com@localhost>,
Greg Troxel  <gdt%ir.bbn.com@localhost> wrote:
>-=-=-=-=-=-
>
>
>--- a/netbsd/src/sys/rump/librump/rumpkern/arch/i386/spinlock.c
>+++ b/netbsd/src/sys/rump/librump/rumpkern/arch/i386/spinlock.c
>@@ -54,8 +54,8 @@ __cpu_simple_lock_try(__cpu_simple_lock_t *lockp)
> 
>       val = __SIMPLELOCK_LOCKED;
>       __asm volatile ("xchgb %0,(%2)" : 
>-          "=r" (val)
>-          :"0" (val), "r" (lockp));
>+          "=q" (val)
>+          :"0" (val), "q" (lockp));
>       __insn_barrier();
>       return val == __SIMPLELOCK_UNLOCKED;
> }

I'll commit something shortly.

thanks,

christos



Home | Main Index | Thread Index | Old Index