summaryrefslogtreecommitdiff
path: root/nuttx/syscall
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-28 14:52:14 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-28 14:52:14 -0600
commit6bda829bd17bda9bdfd5fd95de40be97fa050a40 (patch)
tree1f949f67d03e0bb7bbd7323955ff64646e8a45e2 /nuttx/syscall
parent838deb809620fc52c34458ab940ad405916ba129 (diff)
downloadnuttx-6bda829bd17bda9bdfd5fd95de40be97fa050a40.tar.gz
nuttx-6bda829bd17bda9bdfd5fd95de40be97fa050a40.tar.bz2
nuttx-6bda829bd17bda9bdfd5fd95de40be97fa050a40.zip
ARMv7-A: Add SYSCALL handling logic
Diffstat (limited to 'nuttx/syscall')
-rw-r--r--nuttx/syscall/Kconfig2
-rw-r--r--nuttx/syscall/syscall_funclookup.c6
-rw-r--r--nuttx/syscall/syscall_nparms.c8
-rw-r--r--nuttx/syscall/syscall_stublookup.c5
4 files changed, 9 insertions, 12 deletions
diff --git a/nuttx/syscall/Kconfig b/nuttx/syscall/Kconfig
index f1138611a..6c5f57a8c 100644
--- a/nuttx/syscall/Kconfig
+++ b/nuttx/syscall/Kconfig
@@ -10,7 +10,7 @@ menuconfig LIB_SYSCALL
Build in support for "system calls". System calls are used to
implement a call gate mechanism that can be be used to call from
user code into the kernel. This is only useful for user code that
- likes outside of the kernel such as when the NUTTX_KERNEL build is
+ lies outside of the kernel such as when the NUTTX_KERNEL build is
selected.
This permits calls from user-mode code into kernel mode; the call
diff --git a/nuttx/syscall/syscall_funclookup.c b/nuttx/syscall/syscall_funclookup.c
index b768b2445..6f38634ac 100644
--- a/nuttx/syscall/syscall_funclookup.c
+++ b/nuttx/syscall/syscall_funclookup.c
@@ -1,7 +1,7 @@
/****************************************************************************
* syscall/syscall_funclookup.c
*
- * Copyright (C) 2011-2013 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2011-2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
* a kernel build.
*/
-#if defined(CONFIG_NUTTX_KERNEL) && defined(__KERNEL__)
+#if defined(CONFIG_LIB_SYSCALL) && defined(__KERNEL__)
#include <sys/stat.h>
#include <sys/wait.h>
@@ -121,4 +121,4 @@ const uintptr_t g_funclookup[SYS_nsyscalls] =
* Public Functions
****************************************************************************/
-#endif /* CONFIG_NUTTX_KERNEL && __KERNEL__ */
+#endif /* CONFIG_LIB_SYSCALL && __KERNEL__ */
diff --git a/nuttx/syscall/syscall_nparms.c b/nuttx/syscall/syscall_nparms.c
index 001091757..292421643 100644
--- a/nuttx/syscall/syscall_nparms.c
+++ b/nuttx/syscall/syscall_nparms.c
@@ -1,7 +1,7 @@
/****************************************************************************
* syscall/syscall_stublookup.c
*
- * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2011-2012, 2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -40,9 +40,7 @@
#include <nuttx/config.h>
#include <syscall.h>
-/* The content of this file is only meaning for the case of a kernel build. */
-
-#ifdef CONFIG_NUTTX_KERNEL
+#ifdef CONFIG_LIB_SYSCALL
/****************************************************************************
* Pre-processor definitions
@@ -74,4 +72,4 @@ const uint8_t g_funcnparms[SYS_nsyscalls] =
* Public Functions
****************************************************************************/
- #endif /* CONFIG_NUTTX_KERNEL */
+ #endif /* CONFIG_LIB_SYSCALL */
diff --git a/nuttx/syscall/syscall_stublookup.c b/nuttx/syscall/syscall_stublookup.c
index 19059370c..9a5a6206f 100644
--- a/nuttx/syscall/syscall_stublookup.c
+++ b/nuttx/syscall/syscall_stublookup.c
@@ -46,7 +46,7 @@
* a kernel build.
*/
-#if defined(CONFIG_NUTTX_KERNEL) && defined(__KERNEL__)
+#if defined(CONFIG_LIB_SYSCALL) && defined(__KERNEL__)
/****************************************************************************
* Pre-processor definitions
@@ -341,5 +341,4 @@ const uintptr_t g_stublookup[SYS_nsyscalls] =
* Public Functions
****************************************************************************/
-#endif /* CONFIG_NUTTX_KERNEL && __KERNEL__ */
-
+#endif /* CONFIG_LIB_SYSCALL && __KERNEL__ */