diff options
author | Marian Balakowicz <m8@semihalf.com> | 2008-03-12 11:23:02 (GMT) |
---|---|---|
committer | Marian Balakowicz <m8@semihalf.com> | 2008-03-12 11:23:02 (GMT) |
commit | 7e492d8258182e31c988bbf9917d4a3d41949d56 (patch) | |
tree | e9c9db79d797cf487107c019537c6bb00b854c6c /include/fat.h | |
parent | afe45c87e3c5d77bad76b1a57dccd20764d45b5d (diff) | |
parent | 30f1806f60978d707b0cff2d7bf89d141fc24290 (diff) | |
download | u-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.h | 3 |
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 */ |