mailing list of musl libc
 help / color / mirror / code / Atom feed
34bf0704cd05261845219fb9d68c227abd8ba29b blob 493 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
 
#include "bits/xtensa-config.h"

#if XCHAL_HAVE_S32C1I
#define a_cas a_cas
static inline int a_cas(volatile int *p, int t, int s)
{
	__asm__ __volatile__ (
		"	wsr	%2, scompare1\n"
		"	s32c1i	%0, %1\n"
		: "+a"(s), "+m"(*p)
		: "a"(t)
		: "memory" );
        return s;
}
#endif

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

#define a_crash a_crash
static inline void a_crash()
{
	__asm__ __volatile__ ("ill" : : : "memory");
}
debug log:

solving 34bf0704 ...
found 34bf0704 in https://inbox.vuxu.org/musl/20240227232430.GM4163@brightrain.aerifal.cx/

applying [1/1] https://inbox.vuxu.org/musl/20240227232430.GM4163@brightrain.aerifal.cx/
diff --git a/arch/xtensa/atomic_arch.h b/arch/xtensa/atomic_arch.h
new file mode 100644
index 00000000..34bf0704

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

index at:
100644 34bf0704cd05261845219fb9d68c227abd8ba29b	arch/xtensa/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).