Displaying 2 results from an estimated 2 matches for "e512bdcd".
2020 Aug 28
0
[klibc:ia64-signal-fix] ia64: sigaction: Make signal updates atomic
...signal while we're (potentially) updating its descriptor
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/klibc/arch/ia64/sigaction.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/usr/klibc/arch/ia64/sigaction.c b/usr/klibc/arch/ia64/sigaction.c
index e512bdcd..7f01ea44 100644
--- a/usr/klibc/arch/ia64/sigaction.c
+++ b/usr/klibc/arch/ia64/sigaction.c
@@ -21,6 +21,7 @@ __extern int ____rt_sigaction(int, const struct sigaction *, struct sigaction *,
int __rt_sigaction(int sig, const struct sigaction *act,
struct sigaction *oact, size_t size)
{
+ s...
2020 Aug 28
0
[klibc:ia64-signal-fix] ia64: Fix sigaction struct layout and function implementation
...lib-y := vfork.o setjmp.o sigaction.o pipe.o syscall.o
klib-y += ../../libgcc/__divdi3.o ../../libgcc/__divsi3.o
klib-y += ../../libgcc/__udivdi3.o ../../libgcc/__udivsi3.o
diff --git a/usr/klibc/arch/ia64/sigaction.c b/usr/klibc/arch/ia64/sigaction.c
new file mode 100644
index 00000000..e512bdcd
--- /dev/null
+++ b/usr/klibc/arch/ia64/sigaction.c
@@ -0,0 +1,50 @@
+/*
+ * sigaction.c
+ */
+
+#include <signal.h>
+#include <sys/syscall.h>
+
+/* We use -mno-pic so our function pointers are straight to the function entry
+ point, but the kernel always expects a descriptor. Thus we...