Changeset 8b09de0 in ada-examples for hello_world_ada/init.c


Ignore:
Timestamp:
Jul 17, 2007, 6:29:37 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
ada-examples-4-10-branch, ada-examples-4-8-branch, ada-examples-4-9-branch, master
Children:
4ad07d0
Parents:
63e8156
Message:

2007-07-17 Joel Sherrill <joel.sherrill@…>

  • hello_world_ada/Makefile.pc386, hello_world_ada/init.c: Update to gcc 4.2.0 and rtems 4.8.
  • hello_world_ada/Makefile.anybsp: New file.
  • hello_world_ada/Makefile.erc32, hello_world_ada/Makefile.jmr3904, hello_world_ada/Makefile.psim: Removed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • hello_world_ada/init.c

    r63e8156 r8b09de0  
    1515#include <assert.h>
    1616#include <pthread.h>
     17#include <stdlib.h>
    1718
    1819extern rtems_configuration_table  BSP_Configuration;
     
    3738  extern int gnat_main ( int argc, char **argv, char **envp );
    3839
     40  printk( "Transferring to Ada\n" );
    3941  (void) gnat_main ( 0, 0, 0 );
    4042
     
    4446}
    4547
     48extern  size_t  _ada_pthread_minimum_stack_size();
     49
    4650void *POSIX_Init( void *argument )
    4751{
     
    5054  size_t          stacksize = _ada_pthread_minimum_stack_size();
    5155  int             status;
     56  printk( "Starting Posix Init thread\n" );
    5257
    5358  status = pthread_attr_init( &attr );
     
    6772  assert( !status );
    6873
     74  printk( "Exiting Posix Init thread\n" );
    6975  pthread_exit( 0 );
    7076
     
    7480/* configuration information */
    7581
    76 #define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
    77 #define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
     82#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     83#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    7884
    7985#define CONFIGURE_MICROSECONDS_PER_TICK RTEMS_MILLISECONDS_TO_MICROSECONDS(1)
     
    8389#define CONFIGURE_MAXIMUM_SEMAPHORES 10
    8490#define CONFIGURE_GNAT_RTEMS
    85 /*
    8691#define CONFIGURE_MAXIMUM_ADA_TASKS      20
    8792#define CONFIGURE_MAXIMUM_FAKE_ADA_TASKS 0
    8893
     94#define CONFIGURE_MEMORY_OVERHEAD        (GNAT_MAIN_STACKSPACE)
     95/*
    8996#define CONFIGURE_MEMORY_OVERHEAD        (256 + GNAT_MAIN_STACKSPACE)
    9097*/
     
    9299#define CONFIGURE_INIT
    93100
    94 #include <confdefs.h>
     101#include <rtems/confdefs.h>
    95102
Note: See TracChangeset for help on using the changeset viewer.