mailing list of musl libc
 help / color / mirror / code / Atom feed
ac92891f2a633fcca3a11ce2e408b4629a522a45 blob 863 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
 
#define a_ll a_ll
static inline int a_ll(volatile int *p)
{
	int v;
	__asm__ __volatile__ (
		"ll %0, %1"
		: "=r"(v) : "ZC"(*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), "=ZC"(*p) : "0"(v) : "memory");
	return r;
}

#define a_ll_p a_ll_p
static inline void *a_ll_p(volatile void *p)
{
	void *v;
	__asm__ __volatile__ (
		"lld %0, %1"
		: "=r"(v) : "ZC"(*(void *volatile *)p));
	return v;
}

#define a_sc_p a_sc_p
static inline int a_sc_p(volatile void *p, void *v)
{
	long r;
	__asm__ __volatile__ (
		"scd %0, %1"
		: "=r"(r), "=ZC"(*(void *volatile *)p) : "0"(v) : "memory");
	return r;
}

#define a_barrier a_barrier
static inline void a_barrier()
{
	__asm__ __volatile__ ("sync" : : : "memory");
}

#define a_pre_llsc a_barrier
#define a_post_llsc a_barrier
debug log:

solving ac92891 ...
found ac92891 in https://inbox.vuxu.org/musl/BD7773622145634B952E5B54ACA8E349AA24C18C@PUMAIL01.pu.imgtec.org/
found b468fd9 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 b468fd95fc31e437d4e984d2079dd09fec66631c	arch/mips64/atomic_arch.h

applying [1/1] https://inbox.vuxu.org/musl/BD7773622145634B952E5B54ACA8E349AA24C18C@PUMAIL01.pu.imgtec.org/
diff --git a/arch/mips64/atomic_arch.h b/arch/mips64/atomic_arch.h
index b468fd9..ac92891 100644

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

index at:
100644 ac92891f2a633fcca3a11ce2e408b4629a522a45	arch/mips64/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).