summaryrefslogtreecommitdiff
path: root/common/src/tx_thread_create.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/tx_thread_create.c')
-rw-r--r--common/src/tx_thread_create.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/common/src/tx_thread_create.c b/common/src/tx_thread_create.c
index 9ed58320..fc8873d4 100644
--- a/common/src/tx_thread_create.c
+++ b/common/src/tx_thread_create.c
@@ -118,7 +118,7 @@ ALIGN_TYPE updated_stack_start;
#ifdef TX_ENABLE_STACK_CHECKING
- /* Ensure that there are two ULONG of 0xEF patterns at the top and
+ /* Ensure that there are two ULONG of 0xEF patterns at the top and
bottom of the thread's stack. This will be used to check for stack
overflow conditions during run-time. */
stack_size = ((stack_size/(sizeof(ULONG))) * (sizeof(ULONG))) - (sizeof(ULONG));
@@ -134,7 +134,7 @@ ALIGN_TYPE updated_stack_start;
/* Determine if the starting stack address is different. */
if (new_stack_start != updated_stack_start)
{
-
+
/* Yes, subtract another ULONG from the size to avoid going past the stack area. */
stack_size = stack_size - (sizeof(ULONG));
}
@@ -204,7 +204,7 @@ ALIGN_TYPE updated_stack_start;
/* Perform any additional thread setup activities for tool or user purpose. */
TX_THREAD_CREATE_INTERNAL_EXTENSION(thread_ptr)
- /* Call the target specific stack frame building routine to build the
+ /* Call the target specific stack frame building routine to build the
thread's initial stack and to setup the actual stack pointer in the
control block. */
_tx_thread_stack_build(thread_ptr, _tx_thread_shell_entry);
@@ -246,7 +246,7 @@ ALIGN_TYPE updated_stack_start;
thread_ptr -> tx_thread_created_previous = previous_thread;
thread_ptr -> tx_thread_created_next = next_thread;
}
-
+
/* Increment the thread created count. */
_tx_thread_created_count++;
@@ -280,22 +280,22 @@ ALIGN_TYPE updated_stack_start;
/* Yes, this create call was made from initialization. */
/* Pickup the current thread execute pointer, which corresponds to the
- highest priority thread ready to execute. Interrupt lockout is
- not required, since interrupts are assumed to be disabled during
+ highest priority thread ready to execute. Interrupt lockout is
+ not required, since interrupts are assumed to be disabled during
initialization. */
saved_thread_ptr = _tx_thread_execute_ptr;
/* Determine if there is thread ready for execution. */
if (saved_thread_ptr != TX_NULL)
{
-
+
/* Yes, a thread is ready for execution when initialization completes. */
/* Save the current preemption-threshold. */
saved_threshold = saved_thread_ptr -> tx_thread_preempt_threshold;
- /* For initialization, temporarily set the preemption-threshold to the
- priority level to make sure the highest-priority thread runs once
+ /* For initialization, temporarily set the preemption-threshold to the
+ priority level to make sure the highest-priority thread runs once
initialization is complete. */
saved_thread_ptr -> tx_thread_preempt_threshold = saved_thread_ptr -> tx_thread_priority;
}
@@ -328,7 +328,7 @@ ALIGN_TYPE updated_stack_start;
/* Call the resume thread function to make this thread ready. */
_tx_thread_system_resume(thread_ptr);
#endif
-
+
/* Determine if the thread's preemption-threshold needs to be restored. */
if (saved_thread_ptr != TX_NULL)
{