summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/threaddispatch.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-02-19 11:21:34 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-06 09:43:58 +0100
commitba25cc208c5c83453a57cc42e402c55ac3ffe019 (patch)
tree65fb290fb28342134eb6ab860cfe4b07fa2261ed /cpukit/score/include/rtems/score/threaddispatch.h
parentscore: SMP initialization and shutdown changes (diff)
downloadrtems-ba25cc208c5c83453a57cc42e402c55ac3ffe019.tar.bz2
score: Add and use _Giant_Drop()
New test smptests/smpfatal03.
Diffstat (limited to '')
-rw-r--r--cpukit/score/include/rtems/score/threaddispatch.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/threaddispatch.h b/cpukit/score/include/rtems/score/threaddispatch.h
index 2211662696..cf9b801af8 100644
--- a/cpukit/score/include/rtems/score/threaddispatch.h
+++ b/cpukit/score/include/rtems/score/threaddispatch.h
@@ -109,6 +109,18 @@ RTEMS_INLINE_ROUTINE void _Thread_Dispatch_initialization( void )
void _Giant_Release( void );
/**
+ * @brief Releases the giant lock completely if held by the executing processor.
+ *
+ * The thread dispatch disable level is not altered by this function.
+ *
+ * The only use case for this operation is in
+ * _SMP_Request_shutdown().
+ *
+ * @param[in] self_cpu The current processor index.
+ */
+ void _Giant_Drop( uint32_t self_cpu );
+
+ /**
* @brief Sets thread dispatch level to the value passed in.
*
* This routine sets thread dispatch level to the