summaryrefslogtreecommitdiff
path: root/FreeRTOS/Source/portable/MSVC-MingW/port.c
diff options
context:
space:
mode:
Diffstat (limited to 'FreeRTOS/Source/portable/MSVC-MingW/port.c')
-rw-r--r--FreeRTOS/Source/portable/MSVC-MingW/port.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/FreeRTOS/Source/portable/MSVC-MingW/port.c b/FreeRTOS/Source/portable/MSVC-MingW/port.c
index 3c685b925..ec2341748 100644
--- a/FreeRTOS/Source/portable/MSVC-MingW/port.c
+++ b/FreeRTOS/Source/portable/MSVC-MingW/port.c
@@ -95,7 +95,7 @@ typedef struct
/* Handle of the thread that executes the task. */
void *pvThread;
- /* Event used to makes sure the thread does not execute past a yield point
+ /* Event used to make sure the thread does not execute past a yield point
between the call to SuspendThread() to suspend the thread and the
asynchronous SuspendThread() operation actually being performed. */
void *pvYieldEvent;
@@ -394,7 +394,7 @@ CONTEXT xContext;
xInsideInterrupt = pdFALSE;
WaitForMultipleObjects( sizeof( pvObjectList ) / sizeof( void * ), pvObjectList, TRUE, INFINITE );
- /* Cannot be in a critical section to get here. Tasks that exist a
+ /* Cannot be in a critical section to get here. Tasks that exit a
critical section will block on a yield mutex to wait for an interrupt to
process if an interrupt was set pending while the task was inside the
critical section. xInsideInterrupt prevents interrupts that contain
@@ -456,12 +456,11 @@ CONTEXT xContext;
/* Ensure the thread is actually suspended by performing a
synchronous operation that can only complete when the thread is
- actually suspended. The below code asks for dummy register
- data. Experimentation shows that these two lines don't appear
+ actually suspended. The code below asks for dummy register
+ data. Experimentation shows that these two lines don't appear
to do anything now, but according to
https://devblogs.microsoft.com/oldnewthing/20150205-00/?p=44743
- they do - so as they do not harm (slight run-time hit) they have
- been left it. */
+ they do - so as they do not harm (slight run-time hit). */
xContext.ContextFlags = CONTEXT_INTEGER;
( void ) GetThreadContext( pxThreadState->pvThread, &xContext );
@@ -599,7 +598,7 @@ ThreadState_t *pxThreadState = ( ThreadState_t *) *( ( size_t * ) pxCurrentTCB )
ReleaseMutex( pvInterruptEventMutex );
if( ulCriticalNesting == portNO_CRITICAL_NESTING )
{
- /* An interrupt was pended so ensure to block to alow it to
+ /* An interrupt was pended so ensure to block to allow it to
execute. In most cases the (simulated) interrupt will have
executed before the next line is reached - so this is just to make
sure. */
@@ -669,7 +668,7 @@ int32_t lMutexNeedsReleasing, lWaitForYield = pdFALSE;
pvInterruptEventMutex is released as it waits on both
pvInterruptEventMutex and pvInterruptEvent.
pvInterruptEvent is only set when the simulated
- interrupt is pendeded if the interrupt is pended
+ interrupt is pended if the interrupt is pended
from outside a critical section - hence it is set
here. */
SetEvent( pvInterruptEvent );