diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2004-05-07 20:29:24 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2004-05-07 20:29:24 +0000 |
commit | f1559722eb7a502128a07435149988f49b627bc5 (patch) | |
tree | 4d1f75074aad4e392884a9a31c500a3c558a94a6 /newlib/libc/machine/arm | |
parent | 367ff06ea458a58c16accb4172629366eb04ac30 (diff) | |
download | cygnal-f1559722eb7a502128a07435149988f49b627bc5.tar.gz cygnal-f1559722eb7a502128a07435149988f49b627bc5.tar.bz2 cygnal-f1559722eb7a502128a07435149988f49b627bc5.zip |
2004-05-07 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/param.h: Remove endian info and include
<machine/endian.h> instead.
* libc/include/machine/endian.h: New file.
* libc/machine/arm/machine/endian.h: Ditto.
* libc/machine/arm/machine/param.h: Ditto.
* libc/sys/arm/sys/param.h: Removed.
* libc/sys/sysvi386/sys/param.h: Ditto.
* libc/sys/rtems/sys/param.h: Modified to include <machine/endian.h>.
Diffstat (limited to 'newlib/libc/machine/arm')
-rw-r--r-- | newlib/libc/machine/arm/machine/endian.h | 12 | ||||
-rw-r--r-- | newlib/libc/machine/arm/machine/param.h | 14 |
2 files changed, 26 insertions, 0 deletions
diff --git a/newlib/libc/machine/arm/machine/endian.h b/newlib/libc/machine/arm/machine/endian.h new file mode 100644 index 000000000..54844278b --- /dev/null +++ b/newlib/libc/machine/arm/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 diff --git a/newlib/libc/machine/arm/machine/param.h b/newlib/libc/machine/arm/machine/param.h new file mode 100644 index 000000000..595294cf3 --- /dev/null +++ b/newlib/libc/machine/arm/machine/param.h @@ -0,0 +1,14 @@ +/* ARM configuration file; HZ is 100 rather than the default 60 */ + +#ifndef _MACHINE_PARAM_H +# define _MACHINE_PARAM_H + +# define HZ (100) + +#ifdef __ARMEB__ +#define BYTE_ORDER BIG_ENDIAN +#else +#define BYTE_ORDER LITTLE_ENDIAN +#endif + +#endif |