Skip to content

Commit f335145

Browse files
committed
Update README.md
2 parents 4cc5b7d + 3ed8cbb commit f335145

File tree

1 file changed

+9
-10
lines changed
  • Test/VeriFast/tasks/vTaskSwitchContext

1 file changed

+9
-10
lines changed

Test/VeriFast/tasks/vTaskSwitchContext/README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -293,16 +293,15 @@ Therefore, the proof's correctness relies on the correctness of our models.
293293

294294

295295
- ### Locking discipline and lock invariants
296-
FreeRTOS' SMP implementation uses the following synchronization mechanisms:
297-
- Deactivating interrupts:
298-
299-
Some data is only meant to be accessed on a specific core C.
300-
Such data may only be accessed after interrupts on core C have been deactivated.
301-
For instance the global array `pxCurrentTCBs` in `tasks.c` has an entry for
302-
every core.
303-
`pxCurrentTCBs[C]` stores a pointer to the task control block (TCB) of the task running on core C.
304-
Core C is always allowed to read `pxCurrentTCBs[C]`.
305-
However, writing requires the interrupts on core C to be deactivated.
296+
FreeRTOS' SMP implementation uses the following synchronization mechanisms:
297+
- Deactivating interrupts:
298+
Some data is only meant to be accessed on a specific core C.
299+
Such data may only be accessed after interrupts on core C have been deactivated.
300+
For instance the global array `pxCurrentTCBs` in `tasks.c` has an entry for
301+
every core.
302+
`pxCurrentTCBs[C]` stores a pointer to the task control block (TCB) of the task running on core C.
303+
Core C is always allowed to read `pxCurrentTCBs[C]`.
304+
However, writing requires the interrupts on core C to be deactivated.
306305

307306
- task lock:
308307
The task lock is used to protect ciritical sections and resources from being accessed by multiple tasks simultaneously.

0 commit comments

Comments
 (0)