File:  [DVB] / dietlibc / mips / __CAS.S
Revision 1.2: download - view: text, annotated - select for diffs
Mon Jun 6 11:59:21 2016 UTC (8 years ago) by leitner
Branches: MAIN
CVS tags: HEAD
  mips64 little endian port (Christian Seiler)

#include "mips-asm.h"

.text
.global __CAS
.type __CAS,@function
__CAS:
.set noreorder
.set noat
	sync
1:
	PTR_LL	$2,0($4)
	bne	$2,$5,2f
	move	$1,$6
	PTR_SC	$1,0($4)
	beq	$1,$0,1b
	nop
	sync
2:
	j $31
	nop
.size __CAS, .-__CAS

LinuxTV legacy CVS <linuxtv.org/cvs>