summaryrefslogtreecommitdiff
path: root/nuttx/configs/sama5d4-ek
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-30 08:48:18 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-30 08:48:18 -0600
commitc52594259608b8fdbdb1af1e8ba0fe00e42623d5 (patch)
tree2a3481ff33abd9b763f5d458c5b768ef3bb8fa34 /nuttx/configs/sama5d4-ek
parent34e75f2445337e03f569f8584ef98b8fd78268d8 (diff)
downloadpx4-nuttx-c52594259608b8fdbdb1af1e8ba0fe00e42623d5.tar.gz
px4-nuttx-c52594259608b8fdbdb1af1e8ba0fe00e42623d5.tar.bz2
px4-nuttx-c52594259608b8fdbdb1af1e8ba0fe00e42623d5.zip
Enable SYSCALL interface with address environments in the SAMA5D4-EK ELF configuration
Diffstat (limited to 'nuttx/configs/sama5d4-ek')
-rw-r--r--nuttx/configs/sama5d4-ek/README.txt14
-rw-r--r--nuttx/configs/sama5d4-ek/elf/defconfig5
2 files changed, 17 insertions, 2 deletions
diff --git a/nuttx/configs/sama5d4-ek/README.txt b/nuttx/configs/sama5d4-ek/README.txt
index 7fad01b80..b9cb114c0 100644
--- a/nuttx/configs/sama5d4-ek/README.txt
+++ b/nuttx/configs/sama5d4-ek/README.txt
@@ -3701,9 +3701,19 @@ Configurations
CONFIG_GRAN=n : Disable the granule allocator
CONFIG_MM_PGALLOC=n : Disable the page allocator
+ 4. A system call interface is enabled and the ELF test programs interface with the base RTOS code system calls. This eliminates the need for symbol tables to link with the base RTOS (symbol tables are still used, however, to interface with the common C library instaniation). Relevant configuration settings:
+
+ RTOS Features -> System call support
+ CONFIG_LIB_SYSCALL=y : Enable system call support
+ CONFIG_SYS_NNEST=2 : Max number of nested system calls
+ CONFIG_SYS_RESERVED=1 : SYStem call 0 is reserved on this platform
+
+ Application Configurations -> Examples -> ELF Loader Example
+ CONFIG_EXAMPLES_ELF_SYSCALL=y : Link apps with the SYStem call library
+
STATUS:
2014-8-24: This configuration works with the address environment
- option disable.
+ and system call options disabled.
2014-8-28: Now this option works well well with address environments
enabled. There is a potential issue with the use of
task_create() as it is used in the ELF test, but the code
@@ -3711,6 +3721,8 @@ Configurations
http://www.nuttx.org/doku.php?id=wiki:nxinternal:memconfigs#task_create
+ 2014-8-29: System call interface verified.
+
nsh:
This configuration directory provide the NuttShell (NSH). This is a
diff --git a/nuttx/configs/sama5d4-ek/elf/defconfig b/nuttx/configs/sama5d4-ek/elf/defconfig
index f22da29fb..b877cb3cd 100644
--- a/nuttx/configs/sama5d4-ek/elf/defconfig
+++ b/nuttx/configs/sama5d4-ek/elf/defconfig
@@ -427,7 +427,9 @@ CONFIG_IDLETHREAD_STACKSIZE=1024
CONFIG_USERMAIN_STACKSIZE=2048
CONFIG_PTHREAD_STACK_MIN=256
CONFIG_PTHREAD_STACK_DEFAULT=2048
-# CONFIG_LIB_SYSCALL is not set
+CONFIG_LIB_SYSCALL=y
+CONFIG_SYS_RESERVED=1
+CONFIG_SYS_NNEST=2
#
# Device Drivers
@@ -701,6 +703,7 @@ CONFIG_BUILTIN_PROXY_STACKSIZE=1024
# CONFIG_EXAMPLES_CXXTEST is not set
# CONFIG_EXAMPLES_DHCPD is not set
CONFIG_EXAMPLES_ELF=y
+CONFIG_EXAMPLES_ELF_SYSCALL=y
# CONFIG_EXAMPLES_ELF_LIBC is not set
CONFIG_EXAMPLES_ELF_DEVMINOR=0
CONFIG_EXAMPLES_ELF_DEVPATH="/dev/ram0"