File:  [DVB] / dietlibc / ppc / __CAS.S
Revision 1.1: download - view: text, annotated - select for diffs
Wed Dec 21 02:11:38 2011 UTC (12 years, 5 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
  various build fixes, add sys/atomic.h and the __CAS function

.text
.global __CAS
.type __CAS, @function
__CAS:
	mr 9,3
	lwsync
1:
	lwarx 3,0,9
	cmpw 0,3,4
	bnelr- 0
	stwcx. 5,0,9
	bne- 0,1b
	isync
	blr
.size __CAS, .-__CAS

LinuxTV legacy CVS <linuxtv.org/cvs>