summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2006-12-19 01:55:45 +0000
committerrodrigc <rodrigc@FreeBSD.org>2006-12-19 01:55:45 +0000
commit24c66ef26232daf37e33d7686e8becbd2318b9ba (patch)
tree4819536122e4faea8e0299ae285c013e27bdcd7d /sys/fs
parent9fc60c2d65e04cad032e11c0796b892b295c87d0 (diff)
downloadFreeBSD-src-24c66ef26232daf37e33d7686e8becbd2318b9ba.zip
FreeBSD-src-24c66ef26232daf37e33d7686e8becbd2318b9ba.tar.gz
Fix get_ulong() macro on AMD64 (or any little-endian 64-bit platform).
This bug caused vn_stat() to fail on files larger than 2gb on msdosfs filesystems on AMD64. PR: 106703 Tested by: Axel Gonzalez <loox e-shell net> MFC after: 3 days
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/msdosfs/bpb.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/fs/msdosfs/bpb.h b/sys/fs/msdosfs/bpb.h
index 6ba9670..d5b86a7 100644
--- a/sys/fs/msdosfs/bpb.h
+++ b/sys/fs/msdosfs/bpb.h
@@ -94,11 +94,7 @@ struct bpb710 {
#include <machine/endian.h>
-#ifdef __i386__
-#define UNLALIGNED_ACCESS
-#endif
-
-#if (BYTE_ORDER == LITTLE_ENDIAN) && defined(UNALIGNED_ACCESS)
+#if (BYTE_ORDER == LITTLE_ENDIAN)
#define getushort(x) *((u_int16_t *)(x))
#define getulong(x) *((u_int32_t *)(x))
#define putushort(p, v) (*((u_int16_t *)(p)) = (v))
OpenPOWER on IntegriCloud