shithub: riscv

ref: 3c8246a31ce776976ee95310efa2c6e64a471993
dir: /sys/src/ape/lib/ap/arm64/tas.s/

View raw version
TEXT	tas(SB), 1, $-4
	MOVW	$1, R2
_tas1:
	LDXRW	(R0), R1
	STXRW	R2, (R0), R3
	CBNZ	R3, _tas1
	MOVW	R1, R0

TEXT	_barrier(SB), 1, $-4
	DMB	$0xB	// ISH
	RETURN