shithub: riscv

ref: 6c5e9f73197f0e6bfc59119541312a1d281133b2
dir: /sys/src/libc/power64/tas.s/

View raw version
TEXT	_tas(SB), $0
	SYNC
	MOVD	RARG, R4
	MOVWZ	$0xdeaddead,R5
tas1:
/* taken out for the 755.  dcbf and L2 caching do not seem to get on
    with eachother.  It seems that dcbf is desctructive in the L2 cache 
    (also see l.s) */
//	DCBF	(R4)	
	SYNC
	LWAR	(R4), RARG
	CMP	RARG, $0
	BNE	tas0
	STWCCC	R5, (R4)
	BNE	tas1
tas0:
	SYNC
	ISYNC
	RETURN