Changeset c100ba1 in rtems


Ignore:
Timestamp:
May 8, 2012, 9:39:30 PM (7 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
2824e63
Parents:
f53aa8d
git-author:
Joel Sherrill <joel.sherrill@…> (05/08/12 21:39:30)
git-committer:
Joel Sherrill <joel.sherrill@…> (05/09/12 21:55:05)
Message:

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.

Location:
testsuites/sptests/spqreslib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/spqreslib/init.c

    rf53aa8d rc100ba1  
    2121#define CONFIGURE_INIT
    2222#include "system.h"
     23
     24rtems_id   Task_id;
     25rtems_task_priority Priority;
     26time_t  Period;
     27time_t  Execution;
     28time_t  Phase;
    2329
    2430rtems_task Init(
     
    4753  puts( "\n\n*** TEST QRES LIBRARY ***" );
    4854
    49   Task_name = rtems_build_name( 'P', 'T', '1', ' ' );
    5055
    5156  status = rtems_task_create(
    52     Task_name,
     57    rtems_build_name( 'P', 'T', '1', ' ' ),
    5358    Priority,
    5459    RTEMS_MINIMUM_STACK_SIZE * 4,
  • testsuites/sptests/spqreslib/system.h

    rf53aa8d rc100ba1  
    5353/* global variables */
    5454
    55 rtems_id   Task_id;
    56 rtems_name Task_name;
    57 rtems_task_priority Priority;
    58 time_t  Period;
    59 time_t  Execution;
    60 time_t  Phase;
     55extern rtems_id   Task_id;
     56extern rtems_task_priority Priority;
     57extern time_t  Period;
     58extern time_t  Execution;
     59extern time_t  Phase;
    6160
    6261/* end of include file */
Note: See TracChangeset for help on using the changeset viewer.