summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-11-18 16:47:21 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-12-01 14:25:15 +0100
commitd87089a46c91d5a01bff951eda306e997069aa38 (patch)
tree8ccd1d13937e7372b3736aa7f87ddd7321d7631f
parentf0a70834c12a257372ad18ef09ecdb2a7d37186a (diff)
testsuites/validation/tx-support.h
-rw-r--r--testsuites/validation/tx-support.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuites/validation/tx-support.h b/testsuites/validation/tx-support.h
index 62adb930d0..010fae2180 100644
--- a/testsuites/validation/tx-support.h
+++ b/testsuites/validation/tx-support.h
@@ -547,7 +547,15 @@ void StartDelayThreadDispatch( uint32_t cpu_index );
void StopDelayThreadDispatch( uint32_t cpu_index );
+bool AreInterruptsEnabled( void );
+
+bool IsWhiteSpaceOnly( const char *s );
+
+bool IsEqualIgnoreWhiteSpace( const char *a, const char *b );
+
#if defined(RTEMS_SMP)
+bool TicketLockIsAvailable( const SMP_ticket_lock_Control *lock );
+
void TicketLockWaitForOwned( const SMP_ticket_lock_Control *lock );
void TicketLockWaitForOthers(
@@ -555,6 +563,11 @@ void TicketLockWaitForOthers(
unsigned int others
);
+static inline bool ISRLockIsAvailable( const ISR_lock_Control *lock )
+{
+ return TicketLockIsAvailable( &lock->Lock.Ticket_lock );
+}
+
static inline void ISRLockWaitForOwned( const ISR_lock_Control *lock )
{
TicketLockWaitForOwned( &lock->Lock.Ticket_lock );