From b0a2a7aa23fb3ec251e5e090f8be147215eabf4a Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Tue, 4 Oct 2011 15:18:16 +0000 Subject: 2011-10-04 Sebastian Huber PR 1922 * spcbssched02/system.h, spcbssched03/system.h, spedfsched02/system.h, spedfsched02/task1.c, spedfsched03/system.h: EDF and CBS scheduler: extern declarations fix. --- testsuites/sptests/spedfsched02/system.h | 2 +- testsuites/sptests/spedfsched02/task1.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'testsuites/sptests/spedfsched02') diff --git a/testsuites/sptests/spedfsched02/system.h b/testsuites/sptests/spedfsched02/system.h index 3a3c8360bd..b9898f488f 100644 --- a/testsuites/sptests/spedfsched02/system.h +++ b/testsuites/sptests/spedfsched02/system.h @@ -60,6 +60,6 @@ TEST_EXTERN rtems_name Task_name[ 7 ]; /* array of task names */ TEST_EXTERN struct counters Count; /* iteration counters */ TEST_EXTERN struct counters Temporary_count; -extern rtems_task_priority Priorities[ 7 ]; +TEST_EXTERN rtems_task_priority *Priorities; /* end of include file */ diff --git a/testsuites/sptests/spedfsched02/task1.c b/testsuites/sptests/spedfsched02/task1.c index 0fdf40417b..5ae12bd36c 100644 --- a/testsuites/sptests/spedfsched02/task1.c +++ b/testsuites/sptests/spedfsched02/task1.c @@ -31,7 +31,7 @@ uint32_t Periods[7] = { 0, 2, 2, 2, 2, 100, 0 }; uint32_t Iterations[7] = { 0, 50, 50, 50, 50, 1, TA6_ITERATIONS }; -rtems_task_priority Priorities[7] = { 0, 2, 2, 2, 2, 100, 1 }; +rtems_task_priority Prio[7] = { 0, 2, 2, 2, 2, 100, 1 }; rtems_task Task_1_through_6( rtems_task_argument argument @@ -44,6 +44,8 @@ rtems_task Task_1_through_6( uint32_t failed; rtems_status_code status; + Priorities = Prio; + status = rtems_rate_monotonic_create( argument, &rmid ); directive_failed( status, "rtems_rate_monotonic_create" ); put_name( Task_name[ argument ], FALSE ); -- cgit v1.2.3