summaryrefslogtreecommitdiff
path: root/nuttx/binfmt/libbuiltin
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
commit4f0e8b1249c1550bac83f9db61c67094bc6afc2d (patch)
tree039d43ce0b08169a020076ccc59ee70b2e80c771 /nuttx/binfmt/libbuiltin
parenta0d71b94386f014bdeff6be77b7444438f867bbd (diff)
downloadpx4-nuttx-4f0e8b1249c1550bac83f9db61c67094bc6afc2d.tar.gz
px4-nuttx-4f0e8b1249c1550bac83f9db61c67094bc6afc2d.tar.bz2
px4-nuttx-4f0e8b1249c1550bac83f9db61c67094bc6afc2d.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: svn://svn.code.sf.net/p/nuttx/code/trunk@5527 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/binfmt/libbuiltin')
-rw-r--r--nuttx/binfmt/libbuiltin/Make.defs4
-rw-r--r--nuttx/binfmt/libbuiltin/libbuiltin_getname.c92
-rw-r--r--nuttx/binfmt/libbuiltin/libbuiltin_isavail.c (renamed from nuttx/binfmt/libbuiltin/libbuiltin_utils.c)21
3 files changed, 95 insertions, 22 deletions
diff --git a/nuttx/binfmt/libbuiltin/Make.defs b/nuttx/binfmt/libbuiltin/Make.defs
index 96e8b6c37..5eec1acde 100644
--- a/nuttx/binfmt/libbuiltin/Make.defs
+++ b/nuttx/binfmt/libbuiltin/Make.defs
@@ -41,9 +41,9 @@ BINFMT_CSRCS += builtin.c
# Builtin library interfaces
-BINFMT_CSRCS += libbuiltin_utils.c
+BINFMT_CSRCS += libbuiltin_getname.c libbuiltin_isavail.c
-# Hook the libelf subdirectory into the build
+# Hook the libbuiltin subdirectory into the build
VPATH += libbuiltin
SUBDIRS += libbuiltin
diff --git a/nuttx/binfmt/libbuiltin/libbuiltin_getname.c b/nuttx/binfmt/libbuiltin/libbuiltin_getname.c
new file mode 100644
index 000000000..01ac024f7
--- /dev/null
+++ b/nuttx/binfmt/libbuiltin/libbuiltin_getname.c
@@ -0,0 +1,92 @@
+/****************************************************************************
+ * binfmt/libbuiltin/libbuiltin_getname.c
+ *
+ * Originally by:
+ *
+ * Copyright (C) 2011 Uros Platise. All rights reserved.
+ * Author: Uros Platise <uros.platise@isotel.eu>
+ *
+ * With subsequent updates, modifications, and general maintenance by:
+ *
+ * Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
+ * Author: Gregory Nutt <gnutt@nuttx.org>
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ * 3. Neither the name NuttX nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ ****************************************************************************/
+
+/****************************************************************************
+ * Included Files
+ ****************************************************************************/
+
+#include <nuttx/config.h>
+
+#include <nuttx/binfmt/builtin.h>
+
+/****************************************************************************
+ * Pre-processor Definitions
+ ****************************************************************************/
+
+/****************************************************************************
+ * Private Types
+ ****************************************************************************/
+
+/****************************************************************************
+ * Private Function Prototypes
+ ****************************************************************************/
+
+/****************************************************************************
+ * Private Data
+ ****************************************************************************/
+
+/****************************************************************************
+ * Private Functions
+ ****************************************************************************/
+
+/****************************************************************************
+ * Public Functions
+ ****************************************************************************/
+
+/****************************************************************************
+ * Name: builtin_getname
+ *
+ * Description:
+ * Return the name of the application at index in the table of builtin
+ * applications.
+ *
+ ****************************************************************************/
+
+FAR const char *builtin_getname(int index)
+{
+ if (index < 0 || index >= number_builtins())
+ {
+ return NULL;
+ }
+
+ return g_builtins[index].name;
+}
diff --git a/nuttx/binfmt/libbuiltin/libbuiltin_utils.c b/nuttx/binfmt/libbuiltin/libbuiltin_isavail.c
index b53becff9..f99a4b81d 100644
--- a/nuttx/binfmt/libbuiltin/libbuiltin_utils.c
+++ b/nuttx/binfmt/libbuiltin/libbuiltin_isavail.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * binfmt/libbuiltin/libbuiltin_utils.c
+ * binfmt/libbuiltin/libbuiltin_isavail.c
*
* Originally by:
*
@@ -77,25 +77,6 @@
****************************************************************************/
/****************************************************************************
- * Name: builtin_getname
- *
- * Description:
- * Return the name of the application at index in the table of builtin
- * applications.
- *
- ****************************************************************************/
-
-FAR const char *builtin_getname(int index)
-{
- if (index < 0 || index >= number_builtins())
- {
- return NULL;
- }
-
- return g_builtins[index].name;
-}
-
-/****************************************************************************
* Name: builtin_isavail
*
* Description: