Displaying 20 results from an estimated 42 matches for "__jmp_buf".
2019 Jan 18
0
[klibc:master] mips64: remove __unused from __jmp_buf
...bc.git;a=commit;h=8b15382a33823d38599347e90022abfcdc70fc68
Author: James Cowgill <james.cowgill at mips.com>
AuthorDate: Fri, 2 Mar 2018 08:36:45 -0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Wed, 2 Jan 2019 03:08:04 +0000
[klibc] mips64: remove __unused from __jmp_buf
This field is not needed. Probably it was copied straight from the
32-bit mips __jmp_buf.
Signed-off-by: James Cowgill <james.cowgill at mips.com>
Link: https://www.zytor.com/pipermail/klibc/2018-March/003984.html
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/include...
2025 Apr 19
0
[PATCH] efi/main.c: include <efisetjmp.h>
...rams:
efi/main.c: In function ?local_boot?:
efi/main.c:188:13: error: passing argument 1 of ?longjmp? from
incompatible pointer type [-Wincompatible-pointer-types]
? 188 |???? longjmp(&load_error_buf, 1);
????? |???????????? ^~~~~~~~~~~~~~~
????? |???????????? |
????? |???????????? struct __jmp_buf (*)[1]
In file included from efi/main.c:9:
com32/include/setjmp.h:21:29: note: expected ?struct __jmp_buf *? but
argument is of type ?struct __jmp_buf (*)[1]?
?? 21 | __extern __noreturn longjmp(jmp_buf, int);
efi/main.c: In function ?efi_main?:
efi/main.c:1398:21: error: passing argument 1 of...
2018 Mar 02
5
[PATCH 0/5] Various MIPS fixes
...the important
one.
Thanks,
James
*** BLURB HERE ***
James Cowgill (5):
mips64: compile with -mno-abicalls
mips: use -Ttext-segment when linking shared library
mips/mips64: simplify crt0 code
mips: don't save floating point registers in setjmp / longjmp
mips64: remove __unused from __jmp_buf
usr/include/arch/mips/klibc/archsetjmp.h | 14 --
usr/include/arch/mips64/klibc/archsetjmp.h | 1 -
usr/klibc/arch/mips/MCONFIG | 7 +-
usr/klibc/arch/mips/crt0.S | 13 +-
usr/klibc/arch/mips/klibc.ld | 214 -----------------------------
usr/kl...
2019 Jan 18
0
[klibc:master] mips: don't save floating point registers in setjmp / longjmp
...e floating point registers in setjmp / longjmp
Don't bother saving any floating point registers in setjmp or restoring
them in longjmp. This causes issues when compiling for the FPXX ABI, and
is unnessesary as klibc does not support floating point code.
Additionally, remove the unused parts of __jmp_buf.
Signed-off-by: James Cowgill <james.cowgill at mips.com>
Link: https://www.zytor.com/pipermail/klibc/2018-March/003983.html
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/include/arch/mips/klibc/archsetjmp.h | 14 --------------
usr/klibc/arch/mips/setjmp.S...
2006 May 11
0
[patch] klibc: merge s390 and s390x
...arch/s390/klibc/archsetjmp.h
--- a/usr/include/arch/s390/klibc/archsetjmp.h 2006-05-11 08:09:08.000000000 +0200
+++ b/usr/include/arch/s390/klibc/archsetjmp.h 2006-05-11 08:10:07.000000000 +0200
@@ -5,6 +5,8 @@
#ifndef _KLIBC_ARCHSETJMP_H
#define _KLIBC_ARCHSETJMP_H
+#ifndef __s390x__
+
struct __jmp_buf {
uint32_t __gregs[10]; /* general registers r6-r15 */
uint64_t __fpregs[2]; /* fp registers f4 and f6 */
@@ -12,4 +14,14 @@ struct __jmp_buf {
typedef struct __jmp_buf jmp_buf[1];
+#else /* __s390x__ */
+
+struct __jmp_buf {
+ uint64_t __gregs[10]; /* general registers r6-r15 */
+ u...
2013 Nov 08
2
[PATCH 3/3] arm64: Introduce arm64 support
On 11/08/2013 09:12 AM, Steve Capper wrote:
> +
> +/*
> + * x19-x28 are callee saved, also save fp, lr, sp.
> + * d8-d15 are also callee saved.
> + */
> +
> +struct __jmp_buf {
> + uint64_t __gregs[13];
> + uint64_t __fpregs[8];
> +};
> +
Since the index of these arrays have no connection with what is stored
in them, they should be named fields in the structure, not an array.
Do we need the fpregs saved even though klibc doesn't do fp?
> diff --git...
2023 Mar 05
0
[klibc:master] Add LoongArch64 port
...100644
--- a/usr/include/arch/riscv64/klibc/archsetjmp.h
+++ b/usr/include/arch/loongarch64/klibc/archsetjmp.h
@@ -1,12 +1,15 @@
/*
- * arch/riscv64/include/klibc/archsetjmp.h
+ * include/arch/loongarch64/klibc/archsetjmp.h
*/
#ifndef _KLIBC_ARCHSETJMP_H
#define _KLIBC_ARCHSETJMP_H
struct __jmp_buf {
- unsigned long __pc;
+ unsigned long __ra;
+ unsigned long __sp;
+ unsigned long __r21;
+ unsigned long __fp;
unsigned long __s0;
unsigned long __s1;
unsigned long __s2;
@@ -16,10 +19,6 @@ struct __jmp_buf {
unsigned long __s6;
unsigned long __s7;
unsigned long __s8;
- unsigned long...
2003 Dec 12
2
[PATCH] ppc64 support
...ppc64/include/klibc/archsetjmp.h 1970-01-01 00:00:00.000000000 +0000
+++ klibc-0.92/klibc/arch/ppc64/include/klibc/archsetjmp.h 2002-08-16 22:54:27.000000000 +0000
@@ -0,0 +1,36 @@
+/*
+ * arch/ppc/include/klibc/archsetjmp.h
+ */
+
+#ifndef _KLIBC_ARCHSETJMP_H
+#define _KLIBC_ARCHSETJMP_H
+
+struct __jmp_buf {
+ unsigned long __r2;
+ unsigned long __sp;
+ unsigned long __lr;
+ unsigned long __cr;
+ unsigned long __r13;
+ unsigned long __r14;
+ unsigned long __r15;
+ unsigned long __r16;
+ unsigned long __r17;
+ unsigned long __r18;
+ unsigned long __r19;
+ unsigned long __r20;
+ unsigned l...
2006 May 24
1
[patch] klibc: merge s390/s390x 2nd try
...ch/s390/klibc/archsetjmp.h
--- a/usr/include/arch/s390/klibc/archsetjmp.h 2006-05-24 15:19:12.000000000 +0200
+++ b/usr/include/arch/s390/klibc/archsetjmp.h 2006-05-24 13:06:50.000000000 +0200
@@ -5,11 +5,22 @@
#ifndef _KLIBC_ARCHSETJMP_H
#define _KLIBC_ARCHSETJMP_H
+#ifndef __s390x__
+
struct __jmp_buf {
uint32_t __gregs[10]; /* general registers r6-r15 */
uint64_t __fpregs[2]; /* fp registers f4 and f6 */
};
+#else /* __s390x__ */
+
+struct __jmp_buf {
+ uint64_t __gregs[10]; /* general registers r6-r15 */
+ uint64_t __fpregs[4]; /* fp registers f1, f3, f5, f7 */
+};
+
+#endif /* __s390...
2019 Jan 18
0
[klibc:master] Add RISC-V (RV64) port
.....97d6b6b 100644
--- a/usr/include/arch/mips64/klibc/archsetjmp.h
+++ b/usr/include/arch/riscv64/klibc/archsetjmp.h
@@ -1,11 +1,12 @@
/*
- * arch/mips64/include/klibc/archsetjmp.h
+ * arch/riscv64/include/klibc/archsetjmp.h
*/
#ifndef _KLIBC_ARCHSETJMP_H
#define _KLIBC_ARCHSETJMP_H
struct __jmp_buf {
+ unsigned long __pc;
unsigned long __s0;
unsigned long __s1;
unsigned long __s2;
@@ -14,12 +15,13 @@ struct __jmp_buf {
unsigned long __s5;
unsigned long __s6;
unsigned long __s7;
- unsigned long __gp;
- unsigned long __sp;
unsigned long __s8;
- unsigned long __ra;
-} __attribute__...
2006 Jun 26
0
[klibc 33/43] s390 support for klibc
...include/arch/s390/klibc/archsetjmp.h
new file mode 100644
index 0000000..728780a
--- /dev/null
+++ b/usr/include/arch/s390/klibc/archsetjmp.h
@@ -0,0 +1,26 @@
+/*
+ * arch/s390/include/klibc/archsetjmp.h
+ */
+
+#ifndef _KLIBC_ARCHSETJMP_H
+#define _KLIBC_ARCHSETJMP_H
+
+#ifndef __s390x__
+
+struct __jmp_buf {
+ uint32_t __gregs[10]; /* general registers r6-r15 */
+ uint64_t __fpregs[2]; /* fp registers f4 and f6 */
+};
+
+#else /* __s390x__ */
+
+struct __jmp_buf {
+ uint64_t __gregs[10]; /* general registers r6-r15 */
+ uint64_t __fpregs[4]; /* fp registers f1, f3, f5, f7 */
+};
+
+#endif /* __s390...
2019 Jan 18
0
[klibc:master] arch: Remove m32r port
...chsetjmp.h b/usr/include/arch/m32r/klibc/archsetjmp.h
deleted file mode 100644
index d82df9c..0000000
--- a/usr/include/arch/m32r/klibc/archsetjmp.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * arch/m32r/include/klibc/archsetjmp.h
- */
-
-#ifndef _KLIBC_ARCHSETJMP_H
-#define _KLIBC_ARCHSETJMP_H
-
-struct __jmp_buf {
- unsigned long __r8;
- unsigned long __r9;
- unsigned long __r10;
- unsigned long __r11;
- unsigned long __r12;
- unsigned long __r13;
- unsigned long __r14;
- unsigned long __r15;
-};
-
-typedef struct __jmp_buf jmp_buf[1];
-
-#endif /* _KLIBC_ARCHSETJMP_H */
diff --git a/usr/include/arch/m3...
2006 Jun 26
0
[klibc 26/43] m32r support for klibc
...c/archsetjmp.h b/usr/include/arch/m32r/klibc/archsetjmp.h
new file mode 100644
index 0000000..d82df9c
--- /dev/null
+++ b/usr/include/arch/m32r/klibc/archsetjmp.h
@@ -0,0 +1,21 @@
+/*
+ * arch/m32r/include/klibc/archsetjmp.h
+ */
+
+#ifndef _KLIBC_ARCHSETJMP_H
+#define _KLIBC_ARCHSETJMP_H
+
+struct __jmp_buf {
+ unsigned long __r8;
+ unsigned long __r9;
+ unsigned long __r10;
+ unsigned long __r11;
+ unsigned long __r12;
+ unsigned long __r13;
+ unsigned long __r14;
+ unsigned long __r15;
+};
+
+typedef struct __jmp_buf jmp_buf[1];
+
+#endif /* _KLIBC_ARCHSETJMP_H */
diff --git a/usr/include/arch/m3...
2006 Jun 26
0
[klibc 34/43] sh support for klibc
...h/klibc/archsetjmp.h b/usr/include/arch/sh/klibc/archsetjmp.h
new file mode 100644
index 0000000..bb97167
--- /dev/null
+++ b/usr/include/arch/sh/klibc/archsetjmp.h
@@ -0,0 +1,22 @@
+/*
+ * arch/sh/include/klibc/archsetjmp.h
+ */
+
+#ifndef _KLIBC_ARCHSETJMP_H
+#define _KLIBC_ARCHSETJMP_H
+
+struct __jmp_buf {
+ unsigned long __r8;
+ unsigned long __r9;
+ unsigned long __r10;
+ unsigned long __r11;
+ unsigned long __r12;
+ unsigned long __r13;
+ unsigned long __r14;
+ unsigned long __r15;
+ unsigned long __pr;
+};
+
+typedef struct __jmp_buf jmp_buf[1];
+
+#endif /* _KLIBC_ARCHSETJMP_H */
diff --git...
2006 Jun 26
0
[klibc 36/43] sparc64 support for klibc
...jmp.h b/usr/include/arch/sparc64/klibc/archsetjmp.h
new file mode 100644
index 0000000..9e825bd
--- /dev/null
+++ b/usr/include/arch/sparc64/klibc/archsetjmp.h
@@ -0,0 +1,16 @@
+/*
+ * arch/sparc64/include/klibc/archsetjmp.h
+ */
+
+#ifndef _KLIBC_ARCHSETJMP_H
+#define _KLIBC_ARCHSETJMP_H
+
+struct __jmp_buf {
+ unsigned long __sp;
+ unsigned long __fp;
+ unsigned long __pc;
+};
+
+typedef struct __jmp_buf jmp_buf[1];
+
+#endif /* _SETJMP_H */
diff --git a/usr/include/arch/sparc64/klibc/archsignal.h b/usr/include/arch/sparc64/klibc/archsignal.h
new file mode 100644
index 0000000..bb0a5ce
--- /dev/nu...
2018 Jul 17
1
[PATCH klibc 1/2] rename, renameat: Use renameat2() system call
New architectures only define the renameat2() system call, which was
added in Linux 3.15. Define rename() and renameat() as wrappers for
it if necessary.
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
--- a/usr/klibc/Kbuild
+++ b/usr/klibc/Kbuild
@@ -59,7 +59,8 @@ klib-y += vsnprintf.o snprintf.o vsprint
inet/inet_ntoa.o inet/inet_aton.o inet/inet_addr.o \
2023 Feb 20
1
[PATCH] Add LoongArch64 port
...clude/arch/loongarch64/klibc/archsetjmp.h
new file mode 100644
index 00000000..939c0f5f
--- /dev/null
+++ b/usr/include/arch/loongarch64/klibc/archsetjmp.h
@@ -0,0 +1,26 @@
+/*
+ * include/arch/loongarch64/klibc/archsetjmp.h
+ */
+
+#ifndef _KLIBC_ARCHSETJMP_H
+#define _KLIBC_ARCHSETJMP_H
+
+struct __jmp_buf {
+ unsigned long __ra;
+ unsigned long __sp;
+ unsigned long __r21;
+ unsigned long __fp;
+ unsigned long __s0;
+ unsigned long __s1;
+ unsigned long __s2;
+ unsigned long __s3;
+ unsigned long __s4;
+ unsigned long __s5;
+ unsigned long __s6;
+ unsigned long __s7;
+ unsigned long __s8;
+};
+
+typ...
2006 Jun 26
0
[klibc 27/43] m68k support for klibc
...chsetjmp.h b/usr/include/arch/m68k/klibc/archsetjmp.h
new file mode 100644
index 0000000..e85c810
--- /dev/null
+++ b/usr/include/arch/m68k/klibc/archsetjmp.h
@@ -0,0 +1,26 @@
+/*
+ * usr/include/arch/m68k/klibc/archsetjmp.h
+ */
+
+#ifndef _KLIBC_ARCHSETJMP_H
+#define _KLIBC_ARCHSETJMP_H
+
+struct __jmp_buf {
+ unsigned int __d2;
+ unsigned int __d3;
+ unsigned int __d4;
+ unsigned int __d5;
+ unsigned int __d6;
+ unsigned int __d7;
+ unsigned int __a2;
+ unsigned int __a3;
+ unsigned int __a4;
+ unsigned int __a5;
+ unsigned int __fp; /* a6 */
+ unsigned int __sp; /* a7 */
+ unsigned int __retaddr;
+...
2006 Jun 26
0
[klibc 30/43] parisc support for klibc
...setjmp.h b/usr/include/arch/parisc/klibc/archsetjmp.h
new file mode 100644
index 0000000..05e943e
--- /dev/null
+++ b/usr/include/arch/parisc/klibc/archsetjmp.h
@@ -0,0 +1,14 @@
+/*
+ * arch/parisc/include/klibc/archsetjmp.h
+ */
+
+#ifndef _KLIBC_ARCHSETJMP_H
+#define _KLIBC_ARCHSETJMP_H
+
+struct __jmp_buf {
+ double regs[21];
+};
+
+typedef struct __jmp_buf jmp_buf[1];
+
+#endif /* _SETJMP_H */
diff --git a/usr/include/arch/parisc/klibc/archsignal.h b/usr/include/arch/parisc/klibc/archsignal.h
new file mode 100644
index 0000000..256aeea
--- /dev/null
+++ b/usr/include/arch/parisc/klibc/archsignal...
2006 Jun 26
0
[klibc 31/43] ppc support for klibc
...libc/archsetjmp.h b/usr/include/arch/ppc/klibc/archsetjmp.h
new file mode 100644
index 0000000..4be9ed6
--- /dev/null
+++ b/usr/include/arch/ppc/klibc/archsetjmp.h
@@ -0,0 +1,36 @@
+/*
+ * arch/ppc/include/klibc/archsetjmp.h
+ */
+
+#ifndef _KLIBC_ARCHSETJMP_H
+#define _KLIBC_ARCHSETJMP_H
+
+struct __jmp_buf {
+ unsigned long __r2;
+ unsigned long __sp;
+ unsigned long __lr;
+ unsigned long __cr;
+ unsigned long __r13;
+ unsigned long __r14;
+ unsigned long __r15;
+ unsigned long __r16;
+ unsigned long __r17;
+ unsigned long __r18;
+ unsigned long __r19;
+ unsigned long __r20;
+ unsigned long __r21;
+...