Timestamp:
05/23/14 13:32:32 (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
97d0b9b
Parents:
b3fb2ff
git-author:
Sebastian Huber <sebastian.huber@…> (05/23/14 13:32:32)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/26/14 06:56:44)
Message:

score: Fix race condition in SMP startup

Do not use the Per_CPU_Control::started in
_SMP_Start_multitasking_on_secondary_processor() since this field may be
not up to date when a secondary processor reads it. Use the read-only
scheduler assignment instead.

Add a new fatal error SMP_FATAL_MULTITASKING_START_ON_INVALID_PROCESSOR.
This prevents out-of-bounds access.

It is currently not possible to test these fatal errors. One option
would be to fake values of the _CPU_SMP_Get_current_processor(), but
unfortunately this function is inline on some architectures.

(No files)

Note: See TracChangeset for help on using the changeset viewer.