diff options
author | Marian Balakowicz <m8@semihalf.com> | 2008-01-08 17:11:44 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-02-07 00:12:55 (GMT) |
commit | 559316faf7eae0614c91d77f509b57d6c4c091ba (patch) | |
tree | cd5cf29efb9aa07b64ca470c0bf6671656c070a3 /include/image.h | |
parent | 321359f20823e0b8c5ad38b64d007a6c48cda16e (diff) | |
download | u-boot-559316faf7eae0614c91d77f509b57d6c4c091ba.tar.xz |
[new uImage] Move CHUNKSZ definition to image.h
CHUNKSZ defined for PPC and M68K is set to the same value of 64K,
move this definition to a common header.
Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Diffstat (limited to 'include/image.h')
-rw-r--r-- | include/image.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h index c9f4298..aab3f44 100644 --- a/include/image.h +++ b/include/image.h @@ -164,6 +164,13 @@ typedef struct image_header { uint8_t ih_name[IH_NMLEN]; /* Image Name */ } image_header_t; +/* + * Some systems (for example LWMON) have very short watchdog periods; + * we must make sure to split long operations like memmove() or + * crc32() into reasonable chunks. + */ +#define CHUNKSZ (64 * 1024) + #define image_to_cpu(x) ntohl(x) #define cpu_to_image(x) htonl(x) |