Add basic module management logic

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1894 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2009-06-17 18:45:48 +00:00
parent 60d59fa80b
commit 8ce89fe17d
16 changed files with 829 additions and 216 deletions
+1 -12
View File
@@ -67,8 +67,6 @@
int nxflat_verifyheader(const struct nxflat_hdr_s *header)
{
uint16 revision;
if (!header)
{
bdbg("NULL NXFLAT header!");
@@ -88,15 +86,6 @@ int nxflat_verifyheader(const struct nxflat_hdr_s *header)
header->h_magic[2], header->h_magic[3]);
return -ENOEXEC;
}
/* Complain a little more if the version does not match. */
revision = ntohs(header->h_rev);
if (revision != NXFLAT_VERSION_CURRENT)
{
bdbg("Unsupported NXFLAT version=%d\n", revision);
return -ENOEXEC;
}
return 0;
return OK;
}