mailing list of musl libc
 help / color / mirror / code / Atom feed
bf4805c9c195d98c6a15c42e38de8ccf12ab70ef blob 881 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
49
50
51
52
53
 
#define a_ll a_ll
static inline int a_ll(volatile int *p)
{
	int v;
	__asm__ __volatile__ (
		"ll.w %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.w %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__ (
		"ll.d %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__ (
		"sc.d %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__ ("dbar 0" : : : "memory");
}

#define a_pre_llsc a_barrier
#define a_post_llsc a_barrier
debug log:

solving bf4805c9 ...
found bf4805c9 in https://inbox.vuxu.org/musl/b8869794-0624-6a5f-df15-1840609306a1@loongson.cn/ ||
	https://inbox.vuxu.org/musl/f8e4bbaf-14c1-b79d-de75-d4168da5a5d8@loongson.cn/ ||
	https://inbox.vuxu.org/musl/c6c18c0d-7244-2cb2-a99c-a520a88bc704@loongson.cn/ ||
	https://inbox.vuxu.org/musl/61ffb0ce-85fc-49d9-8599-22c2fa2a6ed5@loongson.cn/ ||
	https://inbox.vuxu.org/musl/6d1b87b7-25da-8707-791d-40c4d44e90d2@loongson.cn/ ||
	https://inbox.vuxu.org/musl/86910db7-be22-b09f-991b-cd8b242325a0@loongson.cn/

applying [1/6] https://inbox.vuxu.org/musl/b8869794-0624-6a5f-df15-1840609306a1@loongson.cn/
diff --git a/arch/loongarch64/atomic_arch.h b/arch/loongarch64/atomic_arch.h
new file mode 100644
index 00000000..bf4805c9

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

skipping https://inbox.vuxu.org/musl/f8e4bbaf-14c1-b79d-de75-d4168da5a5d8@loongson.cn/ for bf4805c9
skipping https://inbox.vuxu.org/musl/c6c18c0d-7244-2cb2-a99c-a520a88bc704@loongson.cn/ for bf4805c9
skipping https://inbox.vuxu.org/musl/61ffb0ce-85fc-49d9-8599-22c2fa2a6ed5@loongson.cn/ for bf4805c9
skipping https://inbox.vuxu.org/musl/6d1b87b7-25da-8707-791d-40c4d44e90d2@loongson.cn/ for bf4805c9
skipping https://inbox.vuxu.org/musl/86910db7-be22-b09f-991b-cd8b242325a0@loongson.cn/ for bf4805c9
index at:
100644 bf4805c9c195d98c6a15c42e38de8ccf12ab70ef	arch/loongarch64/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).