summaryrefslogtreecommitdiff
path: root/include/fat.h
diff options
context:
space:
mode:
authorMarian Balakowicz <m8@semihalf.com>2008-03-12 11:23:02 (GMT)
committerMarian Balakowicz <m8@semihalf.com>2008-03-12 11:23:02 (GMT)
commit7e492d8258182e31c988bbf9917d4a3d41949d56 (patch)
treee9c9db79d797cf487107c019537c6bb00b854c6c /include/fat.h
parentafe45c87e3c5d77bad76b1a57dccd20764d45b5d (diff)
parent30f1806f60978d707b0cff2d7bf89d141fc24290 (diff)
downloadu-boot-7e492d8258182e31c988bbf9917d4a3d41949d56.tar.xz
Merge branch 'master' of git://www.denx.de/git/u-boot into new-image
Diffstat (limited to 'include/fat.h')
-rw-r--r--include/fat.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/fat.h b/include/fat.h
index 92638d5..f993cca 100644
--- a/include/fat.h
+++ b/include/fat.h
@@ -111,7 +111,8 @@
#define START(dent) (FAT2CPU16((dent)->start) \
+ (mydata->fatsize != 32 ? 0 : \
(FAT2CPU16((dent)->starthi) << 16)))
-
+#define CHECK_CLUST(x, fatsize) ((x) <= 1 || \
+ (x) >= ((fatsize) != 32 ? 0xfff0 : 0xffffff0))
typedef struct boot_sector {
__u8 ignored[3]; /* Bootstrap code */