Changeset 652888c in rtems


Ignore:
Timestamp:
Aug 2, 2015, 3:31:09 PM (4 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11
Children:
c9318aa
Parents:
1cf91e0b
git-author:
Joel Sherrill <joel.sherrill@…> (08/02/15 15:31:09)
git-committer:
Joel Sherrill <joel.sherrill@…> (08/02/15 15:32:45)
Message:

ada-tests/support/init.c: Fix compile errors and warnings

closes #2379.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/ada-tests/support/init.c

    r1cf91e0b r652888c  
    11/*
    2  *  COPYRIGHT (c) 1989-2007
     2 *  COPYRIGHT (c) 1989-2015
    33 *  On-Line Applications Research Corporation (OAR).
    44 */
     
    77#include <stdlib.h>
    88
     9#include <rtems/score/threadimpl.h>
     10
    911/*
    1012 * This is the entry point automatically generated by GNAT.
     
    1214extern int gnat_main ( int argc, char **argv, char **envp );
    1315
    14 void *POSIX_Init(
     16static void *POSIX_Init(
    1517  void *argument
    1618)
     
    2224
    2325/*
    24  *  Only for sp04 and sp07
     26 *  Prototypes for various test support routines. Since these are bound to
     27 *  from Ada, there are no external .h files even though they must be public.
    2528 */
     29uint32_t milliseconds_per_tick(void);
     30uint32_t ticks_per_second(void);
     31uint32_t work_space_size(void);
     32uint32_t is_configured_multiprocessing(void);
     33uint32_t get_node(void);
     34rtems_id tcb_to_id(Thread_Control *tcb);
     35
     36/*
     37 *  By putting this in brackets rather than quotes, we get the search
     38 *  path and can get this file from ".." in the mptests.
     39 */
     40#define CONFIGURE_INIT
     41#define CONFIGURE_GNAT_RTEMS
     42#define CONFIGURE_MEMORY_OVERHEAD  (256)
     43
     44#include <config.h>
    2645
    2746rtems_id tcb_to_id(
     
    2948)
    3049{
    31   return tcb->Object.id;
     50  return tcb->Object.id; /* Only for sp04 and sp07 */
    3251}
    33 
    34 
    35 /*
    36  *  By putting this in brackets rather than quotes, we get the search
    37  *  path and can get this file from ".." in the mptests.
    38  */
    39 
    40 #define CONFIGURE_INIT
    41 #define CONFIGURE_GNAT_RTEMS
    42 #define CONFIGURE_MEMORY_OVERHEAD  (256)
    43 
    44 #include <config.h>
    4552
    4653uint32_t milliseconds_per_tick(void)
Note: See TracChangeset for help on using the changeset viewer.