--- /dev/null
+#ifndef __MACHINE_ENDIAN_H__
+
+#include <sys/config.h>
+
+#ifndef BIG_ENDIAN
+#define BIG_ENDIAN 4321
+#endif
+#ifndef LITTLE_ENDIAN
+#define LITTLE_ENDIAN 1234
+#endif
+
+#ifndef BYTE_ORDER
+#ifdef __IEEE_LITTLE_ENDIAN
+#define BYTE_ORDER LITTLE_ENDIAN
+#else
+#define BYTE_ORDER BIG_ENDIAN
+#endif
+
+#endif /* __MACHINE_ENDIAN_H__ */
# define _SYS_PARAM_H
#include <sys/config.h>
+#include <machine/endian.h>
+#include <machine/param.h>
-#ifndef BIG_ENDIAN
-#define BIG_ENDIAN 4321
-#endif
-#ifndef LITTLE_ENDIAN
-#define LITTLE_ENDIAN 1234
-#endif
-
+#ifndef HZ
# define HZ (60)
+#endif
+#ifndef NOFILE
# define NOFILE (60)
+#endif
+#ifndef PATHSIZE
# define PATHSIZE (1024)
+#endif
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#define MIN(a,b) ((a) < (b) ? (a) : (b))
-#ifndef BYTE_ORDER
-#ifdef __IEEE_LITTLE_ENDIAN
-#define BYTE_ORDER LITTLE_ENDIAN
-#else
-#define BYTE_ORDER BIG_ENDIAN
-#endif
-#endif
-
#endif
--- /dev/null
+/* ARM configuration file */
+
+#ifndef _MACHINE_ENDIAN_H
+# define _MACHINE_ENDIAN_H
+
+#ifdef __ARMEB__
+#define BYTE_ORDER BIG_ENDIAN
+#else
+#define BYTE_ORDER LITTLE_ENDIAN
+#endif
+
+#endif
/* ARM configuration file; HZ is 100 rather than the default 60 */
-#ifndef _SYS_PARAM_H
-# define _SYS_PARAM_H
+#ifndef _MACHINE_PARAM_H
+# define _MACHINE_PARAM_H
# define HZ (100)
-# define NOFILE (60)
-# define PATHSIZE (1024)
-
-#define BIG_ENDIAN 4321
-#define LITTLE_ENDIAN 1234
#ifdef __ARMEB__
#define BYTE_ORDER BIG_ENDIAN
/* from newlib's <sys/param.h> */
#include <sys/config.h>
-
-#ifndef BIG_ENDIAN
-#define BIG_ENDIAN 4321
-#endif
-#ifndef LITTLE_ENDIAN
-#define LITTLE_ENDIAN 1234
-#endif
+#include <machine/endian.h>
# define HZ (60)
# define PATHSIZE (1024)
-#ifndef BYTE_ORDER
-#ifdef __IEEE_LITTLE_ENDIAN
-#define BYTE_ORDER LITTLE_ENDIAN
-#else
-#define BYTE_ORDER BIG_ENDIAN
-#endif
-#endif
-
/* end of from newlib's <sys/param.h> */
#include <unistd.h>
+++ /dev/null
-#ifndef _SYS_PARAM_H
-# define _SYS_PARAM_H
-
-# define HZ 60
-# define NOFILE 60
-# define PATHSIZE 1024
-
-#endif