summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/machine
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include/machine')
-rw-r--r--newlib/libc/include/machine/ieeefp.h4
-rw-r--r--newlib/libc/include/machine/setjmp.h5
-rw-r--r--newlib/libc/include/machine/time.h8
3 files changed, 12 insertions, 5 deletions
diff --git a/newlib/libc/include/machine/ieeefp.h b/newlib/libc/include/machine/ieeefp.h
index 8304a1b87..04eea1135 100644
--- a/newlib/libc/include/machine/ieeefp.h
+++ b/newlib/libc/include/machine/ieeefp.h
@@ -415,6 +415,10 @@
# endif
#endif
+#ifdef __VISIUM__
+#define __IEEE_BIG_ENDIAN
+#endif
+
#ifndef __IEEE_BIG_ENDIAN
#ifndef __IEEE_LITTLE_ENDIAN
#error Endianess not declared!!
diff --git a/newlib/libc/include/machine/setjmp.h b/newlib/libc/include/machine/setjmp.h
index f7e5865ab..ec6644a7f 100644
--- a/newlib/libc/include/machine/setjmp.h
+++ b/newlib/libc/include/machine/setjmp.h
@@ -338,6 +338,11 @@ _BEGIN_STD_C
#define _JBLEN 0x44
#endif
+#ifdef __VISIUM__
+/* All call-saved GP registers: r11-r19,r21,r22,r23. */
+#define _JBLEN 12
+#endif
+
#ifdef _JBLEN
#ifdef _JBTYPE
typedef _JBTYPE jmp_buf[_JBLEN];
diff --git a/newlib/libc/include/machine/time.h b/newlib/libc/include/machine/time.h
index 06e2ccffb..3057c817d 100644
--- a/newlib/libc/include/machine/time.h
+++ b/newlib/libc/include/machine/time.h
@@ -3,11 +3,11 @@
#if defined(__rtems__)
#define _CLOCKS_PER_SEC_ sysconf(_SC_CLK_TCK)
-#else /* !__rtems__ */
-#if defined(__aarch64__) || defined(__arm__) || defined(__thumb__)
+#elif defined(__aarch64__) || defined(__arm__) || defined(__thumb__)
#define _CLOCKS_PER_SEC_ 100
+#elif defined (__VISIUM__)
+#define _CLOCKS_PER_SEC_ 1000000
#endif
-#endif /* !__rtems__ */
#ifdef __SPU__
#include <sys/types.h>
@@ -15,5 +15,3 @@ int nanosleep (const struct timespec *, struct timespec *);
#endif
#endif /* _MACHTIME_H_ */
-
-