6 changed files with 42 additions and 45 deletions
@ -0,0 +1,19 @@ |
|||
#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__ */ |
|||
@ -0,0 +1,12 @@ |
|||
/* 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 |
|||
@ -1,14 +1,9 @@ |
|||
/* 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 |
|||
@ -1,8 +0,0 @@ |
|||
#ifndef _SYS_PARAM_H |
|||
# define _SYS_PARAM_H |
|||
|
|||
# define HZ 60 |
|||
# define NOFILE 60 |
|||
# define PATHSIZE 1024 |
|||
|
|||
#endif |
|||
Loading…
Reference in new issue