summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-12-11 21:42:15 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-12-11 21:42:15 +0000
commitf0e320ceb9ba49bc6133547e25c520c2155b38d7 (patch)
treefddaccb5f325a2ab18f593609e63b46e98733620 /nuttx/include
parentcdbb7040cc2ba10d5c86fccc448660a401dad7b9 (diff)
downloadpx4-nuttx-f0e320ceb9ba49bc6133547e25c520c2155b38d7.tar.gz
px4-nuttx-f0e320ceb9ba49bc6133547e25c520c2155b38d7.tar.bz2
px4-nuttx-f0e320ceb9ba49bc6133547e25c520c2155b38d7.zip
configs/p112: Add a configuration for the Z180 P112 board
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5429 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/arch.h26
1 files changed, 23 insertions, 3 deletions
diff --git a/nuttx/include/nuttx/arch.h b/nuttx/include/nuttx/arch.h
index 54c234d8d..7c444602e 100644
--- a/nuttx/include/nuttx/arch.h
+++ b/nuttx/include/nuttx/arch.h
@@ -403,7 +403,7 @@ int up_addrenv_create(FAR _TCB *tcb, size_t envsize);
#endif
/****************************************************************************
- * Name: up_addrenv_clone
+ * Name: up_addrenv_share
*
* Description:
* This function is called from the core scheduler logic when a thread
@@ -421,7 +421,7 @@ int up_addrenv_create(FAR _TCB *tcb, size_t envsize);
****************************************************************************/
#ifdef CONFIG_ADDRENV
-int up_addrenv_clone(FAR const _TCB *ptcb, FAR _TCB *ctcb);
+int up_addrenv_share(FAR const _TCB *ptcb, FAR _TCB *ctcb);
#endif
/****************************************************************************
@@ -439,12 +439,32 @@ int up_addrenv_clone(FAR const _TCB *ptcb, FAR _TCB *ctcb);
* be instantiated.
*
* Returned Value:
+ * A handle that may be used with up_addrenv_restore() to restore the
+ * address environment before up_addrenv_instantiate() was called.
+ *
+ ****************************************************************************/
+
+#ifdef CONFIG_ADDRENV
+FAR void *up_addrenv_instantiate(FAR _TCB *tcb);
+#endif
+
+/****************************************************************************
+ * Name: up_addrenv_restore
+ *
+ * Description:
+ * Restore an address environment using a handle previously returned by
+ * up_addrenv_instantiate().
+ *
+ * Input Parameters:
+ * handle - A handle previously returned by up_addrenv_instantiate.
+ *
+ * Returned Value:
* Zero (OK) on success; a negated errno value on failure.
*
****************************************************************************/
#ifdef CONFIG_ADDRENV
-int up_addrenv_instantiate(FAR _TCB *tcb);
+int up_addrenv_restore(FAR void *handle);
#endif
/****************************************************************************