| 12345678910111213141516171819202122232425 | /* * Copyright (C) 2017 Hangzhou C-SKY Microsystems co.,ltd. * * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB * in this tarball. */#include <sysdep.h>	.text	.align	4ENTRY (pthread_spin_lock)	mov	a2, a01:	movi	a0, 0	movi	a1, 1	trap	2		// trap 2 use to cmpxchg	cmpnei	a0, 0	bt	1b	movi	a0, 0	jmp	r15    /* TODO */END (pthread_spin_lock)
 |