Re: [RFT] [SPARC] Emulate cmpxchg like parisc

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

 



From: Dave Airlie <airlied@xxxxxxxx>
Date: Sat, 26 May 2007 21:32:10 +0100 (IST)

> the DRM can use cmpxchg in userspace, to implement DRM_CAS, have a look in 
> drm git libdrm/xf86drm.h we appear to have a sparc implementation, this 
> gives us fast userspace locking, however if an arch doesn't implement 
> DRM_CAS we fallback to the heavyweight in-kernel lock,

That instruction only works on sparc64 cpus, which includes
32-bit apps running a system with sparc64 cpus.

That's why I hard-code the opcode in that asm statement of
the DRM sources.
-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux