summaryrefslogtreecommitdiffstats
path: root/schedsim/shell/schedsim_smpsimple/scenarios/cpus4_simple_preemption.scen
blob: ccb6d0e5920aa03641992fe2a4eab52060e3bbed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
#  Ensure lowest priority is preempted
#
rtems_init 4
task_create smp1 5
task_create smp2 6
task_create smp3 7
task_create smp4 8
dispatch
# GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
# GOAL:   on CPUs 1-4 respectively
cpus
# Tasks are created and distributed across CPUs
task_create smp5 1
# GOAL: want 0x0a010005 to be heir on CPU 4
cpus
dispatch
# GOAL: want 0x0a010005 to be heir AND executing on CPU 4
cpus