mailing list of musl libc
 help / color / mirror / code / Atom feed
b3948136d581f1a3b91bc34f154ea5c1fc2299a4 blob 602 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
#define a_ll a_ll
static inline int a_ll(volatile int *p)
{
	int v;
	__asm__ __volatile__ (
		"ll %0, %1"
		: "=r"(v) : "m"(*p));
	return v;
}

#define a_sc a_sc
static inline int a_sc(volatile int *p, int v)
{
	int r;
	__asm__ __volatile__ (
		"sc %0, %1"
		: "=r"(r), "=m"(*p) : "0"(v) : "memory");
	return r;
}

#define a_barrier a_barrier
static inline void a_barrier()
{
	/* mips2 sync, but using too many directives causes
	 * gcc not to inline it, so encode with .long instead. */
	__asm__ __volatile__ (".long 0xf" : : : "memory");
}

#define a_pre_llsc a_barrier
#define a_post_llsc a_barrier
debug log:

solving b394813 ...
found b394813 in https://inbox.vuxu.org/musl/BD7773622145634B952E5B54ACA8E349AA247908@PUMAIL01.pu.imgtec.org/

applying [1/1] https://inbox.vuxu.org/musl/BD7773622145634B952E5B54ACA8E349AA247908@PUMAIL01.pu.imgtec.org/
diff --git a/arch/mipsn32/atomic_arch.h b/arch/mipsn32/atomic_arch.h
new file mode 100644
index 0000000..b394813

Checking patch arch/mipsn32/atomic_arch.h...
Applied patch arch/mipsn32/atomic_arch.h cleanly.

index at:
100644 b3948136d581f1a3b91bc34f154ea5c1fc2299a4	arch/mipsn32/atomic_arch.h

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).