]> git.pld-linux.org Git - packages/dietlibc.git/blame - dietlibc-ppc.patch
- up to 0.30
[packages/dietlibc.git] / dietlibc-ppc.patch
CommitLineData
eb5f0b9b
MM
1diff -ur dietlibc-0.22/ppc/mmap.S dietlibc-0.22-/ppc/mmap.S
2--- dietlibc-0.22/ppc/mmap.S 2003-07-01 13:01:26.000000000 +0200
3+++ dietlibc-0.22-/ppc/mmap.S 2003-07-01 13:01:13.000000000 +0200
4@@ -0,0 +1,27 @@
5+ .section ".text"
6+ .align 2
7+ .globl mmap
8+ .type mmap,@function
9+mmap:
10+ stwu 1,-16(1)
11+ mflr 0
12+ stw 31,12(1)
13+ stw 0,20(1)
14+ li 0,90
15+ sc
16+ mfcr 0
17+ andis. 9,0,4096
18+ mr 31,3
19+ bc 12,2,.L4
20+ bl __errno_location
21+ stw 31,0(3)
22+ li 31,-1
23+.L4:
24+ mr 3,31
25+ lwz 0,20(1)
26+ mtlr 0
27+ lwz 31,12(1)
28+ la 1,16(1)
29+ blr
30+.Lfe1:
31+ .size mmap,.Lfe1-mmap
106392d7
JB
32--- dietlibc-0.24/include/sys/ucontext.h.orig 2003-10-10 15:17:46.000000000 +0200
33+++ dietlibc-0.24/include/sys/ucontext.h 2003-11-22 18:21:22.390804792 +0100
34@@ -1,6 +1,13 @@
35 #ifndef _SYS_UCONTEXT_H
36 #define _SYS_UCONTEXT_H
37
38+/* follow glibc <bits/sigcontext.h> on ppc: */
39+#if defined(powerpc) && !defined(sigcontext_struct)
40+/* Kernel headers before 2.1.1 define a struct sigcontext_struct, but
41+ * we need sigcontext. */
42+# define sigcontext_struct sigcontext
43+#endif
44+
45 #include <asm/sigcontext.h>
46 #include <signal.h>
47
This page took 0.804427 seconds and 4 git commands to generate.