diff options
author | Carsten Schlote <c.schlote@konzeptpark.de> | 2008-02-15 13:40:30 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2008-02-19 08:56:01 +0100 |
commit | db291de28014807ab0e8c97cbadf381c3d781f2d (patch) | |
tree | 46974f92145f17b4a5b8656a19b860c66abb9e8f /include/cramfs | |
parent | ea65ad15bae287b6b7ea7b68ed30cb3d29be55b5 (diff) | |
download | barebox-db291de28014807ab0e8c97cbadf381c3d781f2d.tar.gz barebox-db291de28014807ab0e8c97cbadf381c3d781f2d.tar.xz |
[general] Fixed endian handling for envfs
Fixed the handling of data similiar as found in cramfs.
This fixes the problem with an unreadable defaultenv on big-endian
targets.
The endian macors are now loaded from /asm/common.h by default.
Signed-off-by: Carsten Schlote <c.schlote@konzeptpark.de>
Diffstat (limited to 'include/cramfs')
-rw-r--r-- | include/cramfs/cramfs_fs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/cramfs/cramfs_fs.h b/include/cramfs/cramfs_fs.h index 9f1b1d529c..6f2ee6871a 100644 --- a/include/cramfs/cramfs_fs.h +++ b/include/cramfs/cramfs_fs.h @@ -84,6 +84,10 @@ struct cramfs_super { | CRAMFS_FLAG_WRONG_SIGNATURE \ | CRAMFS_FLAG_SHIFTED_ROOT_OFFSET ) +#ifndef __BYTE_ORDER +#error "No byte order defined in __BYTE_ORDER" +#endif + #if __BYTE_ORDER == __LITTLE_ENDIAN #define CRAMFS_16(x) (x) #define CRAMFS_24(x) (x) |