mailing list of musl libc
 help / color / mirror / code / Atom feed
4dbe4bb3d0a55ccb457fa9abd73c70b4aea6e32b blob 487 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
 
#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_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 4dbe4bb ...
found 4dbe4bb in https://inbox.vuxu.org/musl/BD7773622145634B952E5B54ACA8E349AA24C18C@PUMAIL01.pu.imgtec.org/
found ce2823b in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 ce2823b8f42cdb77580915e9be0eebca4ae7f15c	arch/mips/atomic_arch.h

applying [1/1] https://inbox.vuxu.org/musl/BD7773622145634B952E5B54ACA8E349AA24C18C@PUMAIL01.pu.imgtec.org/
diff --git a/arch/mips/atomic_arch.h b/arch/mips/atomic_arch.h
index ce2823b..4dbe4bb 100644

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

index at:
100644 4dbe4bb3d0a55ccb457fa9abd73c70b4aea6e32b	arch/mips/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).