mailing list of musl libc
 help / color / mirror / code / Atom feed
63ee4e9625564b79ede1e870206e8f10c20d3061 blob 2609 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
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
 
#define __SYSCALL_LL_E(x) \
((union { long long ll; long l[2]; }){ .ll = x }).l[0], \
((union { long long ll; long l[2]; }){ .ll = x }).l[1]
#define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x))

static inline long __syscall0(long n)
{
	register long a2 __asm__("a2") = n;

	__asm__ __volatile__ ("syscall"
			      : "+&a"(a2)
			      :
			      : "memory");
	return a2;
}

static inline long __syscall1(long n, long a)
{
	register long a2 __asm__("a2") = n;
	register long a6 __asm__("a6") = a;

	__asm__ __volatile__ ("syscall"
			      : "+&a"(a2)
			      : "a"(a6)
			      : "memory");
	return a2;
}

static inline long __syscall2(long n, long a, long b)
{
	register long a2 __asm__("a2") = n;
	register long a6 __asm__("a6") = a;
	register long a3 __asm__("a3") = b;

	__asm__ __volatile__ ("syscall"
			      : "+&a"(a2)
			      : "a"(a6), "a"(a3)
			      : "memory");
	return a2;
}

static inline long __syscall3(long n, long a, long b, long c)
{
	register long a2 __asm__("a2") = n;
	register long a6 __asm__("a6") = a;
	register long a3 __asm__("a3") = b;
	register long a4 __asm__("a4") = c;

	__asm__ __volatile__ ("syscall"
			      : "+&a"(a2)
			      : "a"(a6), "a"(a3), "a"(a4)
			      : "memory");
	return a2;
}

static inline long __syscall4(long n, long a, long b, long c, long d)
{
	register long a2 __asm__("a2") = n;
	register long a6 __asm__("a6") = a;
	register long a3 __asm__("a3") = b;
	register long a4 __asm__("a4") = c;
	register long a5 __asm__("a5") = d;

	__asm__ __volatile__ ("syscall"
			      : "+&a"(a2)
			      : "a"(a6), "a"(a3), "a"(a4), "a"(a5)
			      : "memory");
	return a2;
}

static inline long __syscall5(long n, long a, long b, long c, long d, long e)
{
	register long a2 __asm__("a2") = n;
	register long a6 __asm__("a6") = a;
	register long a3 __asm__("a3") = b;
	register long a4 __asm__("a4") = c;
	register long a5 __asm__("a5") = d;
	register long a8 __asm__("a8") = e;

	__asm__ __volatile__ ("syscall"
			      : "+&a"(a2)
			      : "a"(a6), "a"(a3), "a"(a4), "a"(a5), "a"(a8)
			      : "memory");
	return a2;
}

static inline long __syscall6(long n, long a, long b, long c, long d, long e, long f)
{
	register long a2 __asm__("a2") = n;
	register long a6 __asm__("a6") = a;
	register long a3 __asm__("a3") = b;
	register long a4 __asm__("a4") = c;
	register long a5 __asm__("a5") = d;
	register long a8 __asm__("a8") = e;
	register long a9 __asm__("a9") = f;

	__asm__ __volatile__ ("syscall"
			      : "+&a"(a2)
			      : "a"(a6), "a"(a3), "a"(a4), "a"(a5), "a"(a8), "a"(a9)
			      : "memory");
	return a2;
}

#define SYSCALL_FADVISE_6_ARG
debug log:

solving 63ee4e962556 ...
found 63ee4e962556 in https://inbox.vuxu.org/musl/20240328200319.4016902-2-jcmvbkbc@gmail.com/ ||
	https://inbox.vuxu.org/musl/20240506180112.1045944-2-jcmvbkbc@gmail.com/

applying [1/2] https://inbox.vuxu.org/musl/20240328200319.4016902-2-jcmvbkbc@gmail.com/
diff --git a/arch/xtensa/syscall_arch.h b/arch/xtensa/syscall_arch.h
new file mode 100644
index 000000000000..63ee4e962556

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

skipping https://inbox.vuxu.org/musl/20240506180112.1045944-2-jcmvbkbc@gmail.com/ for 63ee4e962556
index at:
100644 63ee4e9625564b79ede1e870206e8f10c20d3061	arch/xtensa/syscall_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).