summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include')
-rw-r--r--newlib/libc/include/machine/malloc.h8
-rw-r--r--newlib/libc/include/machine/setjmp.h4
-rw-r--r--newlib/libc/include/machine/stdlib.h8
-rw-r--r--newlib/libc/include/malloc.h3
-rw-r--r--newlib/libc/include/stdlib.h2
5 files changed, 24 insertions, 1 deletions
diff --git a/newlib/libc/include/machine/malloc.h b/newlib/libc/include/machine/malloc.h
new file mode 100644
index 000000000..fdada9ed7
--- /dev/null
+++ b/newlib/libc/include/machine/malloc.h
@@ -0,0 +1,8 @@
+#ifndef _MACHMALLOC_H_
+#define _MACHMALLOC_H_
+
+/* place holder so platforms may add malloc.h extensions */
+
+#endif /* _MACHMALLOC_H_ */
+
+
diff --git a/newlib/libc/include/machine/setjmp.h b/newlib/libc/include/machine/setjmp.h
index c7f146338..e4c788b2f 100644
--- a/newlib/libc/include/machine/setjmp.h
+++ b/newlib/libc/include/machine/setjmp.h
@@ -106,7 +106,11 @@ typedef int jmp_buf[_JBLEN];
#endif
#ifdef __PPC__
+#ifdef __ALTIVEC__
+#define _JBLEN 64
+#else
#define _JBLEN 32
+#endif
#define _JBTYPE double
#endif
diff --git a/newlib/libc/include/machine/stdlib.h b/newlib/libc/include/machine/stdlib.h
new file mode 100644
index 000000000..fa3f3a139
--- /dev/null
+++ b/newlib/libc/include/machine/stdlib.h
@@ -0,0 +1,8 @@
+#ifndef _MACHSTDLIB_H_
+#define _MACHSTDLIB_H_
+
+/* place holder so platforms may add stdlib.h extensions */
+
+#endif /* _MACHSTDLIB_H_ */
+
+
diff --git a/newlib/libc/include/malloc.h b/newlib/libc/include/malloc.h
index 5ccdda61c..08a14252a 100644
--- a/newlib/libc/include/malloc.h
+++ b/newlib/libc/include/malloc.h
@@ -9,6 +9,9 @@
#define __need_size_t
#include <stddef.h>
+/* include any machine-specific extensions */
+#include <machine/malloc.h>
+
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h
index 00a9d1ab3..eb8f54d1e 100644
--- a/newlib/libc/include/stdlib.h
+++ b/newlib/libc/include/stdlib.h
@@ -17,7 +17,7 @@ extern "C" {
#include <stddef.h>
#include <sys/reent.h>
-
+#include <machine/stdlib.h>
#ifndef __STRICT_ANSI__
#include <alloca.h>
#endif