In article <[email protected]>,
Greg Troxel  <[email protected]> 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

Reply via email to