aboutsummaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-17 00:30:12 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-17 00:30:12 +0000
commitcaeef71797019505fd450b1a0ae573ac5e490c6e (patch)
tree039d43ce0b08169a020076ccc59ee70b2e80c771 /nuttx/include
parente7e1c6aee0e0d84f290995a092c1722878a54044 (diff)
downloadpx4-firmware-caeef71797019505fd450b1a0ae573ac5e490c6e.tar.gz
px4-firmware-caeef71797019505fd450b1a0ae573ac5e490c6e.tar.bz2
px4-firmware-caeef71797019505fd450b1a0ae573ac5e490c6e.zip
Change the way thread priority is handled in binfmt/ to better match the way that priority is set up for the builtin tasks
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5527 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/binfmt/binfmt.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/nuttx/include/nuttx/binfmt/binfmt.h b/nuttx/include/nuttx/binfmt/binfmt.h
index 480e82c09..c6c7c874a 100644
--- a/nuttx/include/nuttx/binfmt/binfmt.h
+++ b/nuttx/include/nuttx/binfmt/binfmt.h
@@ -117,6 +117,12 @@ struct binary_s
#endif
size_t mapsize; /* Size of the mapped address region (needed for munmap) */
+
+ /* Start-up information that is provided by the loader, but may be modified
+ * by the caller between load_module() and exec_module() calls.
+ */
+
+ uint8_t priority; /* Task execution priority */
size_t stacksize; /* Size of the stack in bytes (unallocated) */
};
@@ -221,15 +227,14 @@ int unload_module(FAR const struct binary_s *bin);
*
****************************************************************************/
-int exec_module(FAR const struct binary_s *bin, int priority);
+int exec_module(FAR const struct binary_s *bin);
/****************************************************************************
* Name: exec
*
* Description:
* This is a convenience function that wraps load_ and exec_module into
- * one call. The priority of the executed program is set to be the
- * same as the priority of the calling thread.
+ * one call.
*
* Input Parameter:
* filename - Fulll path to the binary to be loaded