spqreslib - Make global data extern in system.h

Global data was declared in system.h but should have been extern
in system.h and declared in init.c. There were duplicate symbol
linking errors on at least powerpc/mpc8260ads.
This commit is contained in:
Joel Sherrill
2012-05-08 16:39:30 -05:00
parent f53aa8d302
commit c100ba13de
2 changed files with 12 additions and 8 deletions

View File

@@ -21,6 +21,12 @@
#define CONFIGURE_INIT #define CONFIGURE_INIT
#include "system.h" #include "system.h"
rtems_id Task_id;
rtems_task_priority Priority;
time_t Period;
time_t Execution;
time_t Phase;
rtems_task Init( rtems_task Init(
rtems_task_argument argument rtems_task_argument argument
) )
@@ -46,10 +52,9 @@ rtems_task Init(
puts( "\n\n*** TEST QRES LIBRARY ***" ); puts( "\n\n*** TEST QRES LIBRARY ***" );
Task_name = rtems_build_name( 'P', 'T', '1', ' ' );
status = rtems_task_create( status = rtems_task_create(
Task_name, rtems_build_name( 'P', 'T', '1', ' ' ),
Priority, Priority,
RTEMS_MINIMUM_STACK_SIZE * 4, RTEMS_MINIMUM_STACK_SIZE * 4,
RTEMS_DEFAULT_MODES, RTEMS_DEFAULT_MODES,

View File

@@ -52,11 +52,10 @@ rtems_task Task_Periodic(
/* global variables */ /* global variables */
rtems_id Task_id; extern rtems_id Task_id;
rtems_name Task_name; extern rtems_task_priority Priority;
rtems_task_priority Priority; extern time_t Period;
time_t Period; extern time_t Execution;
time_t Execution; extern time_t Phase;
time_t Phase;
/* end of include file */ /* end of include file */