Bugfixes submitted by David Hewson

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2543 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2010-03-16 00:53:32 +00:00
parent 39d4e1bbf1
commit ba8c762a86

View File

@ -261,7 +261,11 @@ int main(int argc, char **argv, char **envp)
memset(&g_hdr, 0, sizeof(struct lpc313x_header_s));
g_hdr.vector = 0xea00001e; /* b 0x11029080 */
g_hdr.magic = 0x41676d69;
#if 1 /* CRC doesn't seem to be functional */
g_hdr.imageType = 0x0000000a;
#else
g_hdr.imageType = 0x0000000b;
#endif
g_hdr.imageLength = (buf.st_size + sizeof(struct lpc313x_header_s) + 511) & ~0x1ff;
/* This is how much we must pad at the end of the binary image. */