summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2004-12-14 17:26:03 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2004-12-14 17:26:03 +0000
commitf7523394a91b26ce81964c5813390ec835181f58 (patch)
treee7ecf742122018c96dc41910e0b3c5367682e068
parent334b74710e90be7f39ed368ea54a7dca1e44175e (diff)
downloaddrakx-backup-do-not-use-f7523394a91b26ce81964c5813390ec835181f58.tar
drakx-backup-do-not-use-f7523394a91b26ce81964c5813390ec835181f58.tar.gz
drakx-backup-do-not-use-f7523394a91b26ce81964c5813390ec835181f58.tar.bz2
drakx-backup-do-not-use-f7523394a91b26ce81964c5813390ec835181f58.tar.xz
drakx-backup-do-not-use-f7523394a91b26ce81964c5813390ec835181f58.zip
fix setjmp.h (JB_SIZE) on ppc64
-rw-r--r--mdk-stage1/dietlibc/include/setjmp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/include/setjmp.h b/mdk-stage1/dietlibc/include/setjmp.h
index 64091ebee..6af7b7a6c 100644
--- a/mdk-stage1/dietlibc/include/setjmp.h
+++ b/mdk-stage1/dietlibc/include/setjmp.h
@@ -175,7 +175,11 @@ typedef int __jmp_buf[24];
# define JB_GPRS 3 /* GPRs 14 through 31 are saved, 18 in total */
# define JB_CR 21 /* Condition code registers. */
# define JB_FPRS 22 /* FPRs 14 through 31 are saved, 18*2 words total */
+# if defined(powerpc)
# define JB_SIZE (58*4)
+# else
+# define JB_SIZE (58*8)
+# endif
#ifndef __ASSEMBLER__
typedef long int __jmp_buf[58];
#endif