Changeset 9e6e1e8 in ada-examples


Ignore:
Timestamp:
Jul 23, 2007, 10:11:30 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:
ed30e2b
Parents:
4ad07d0
Message:

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

  • hello_world_ada/Makefile.anybsp, hello_world_ada/Makefile.pc386, hello_world_ada/init.c: Clean up.
  • hello_world_ada/.cvsiginore, hello_world_ada/README: New files.
  • hello_world_ada/Makefile.score603e, hello_world_ada/README.ERC32, hello_world_ada/README.PSIM, hello_world_ada/gdb.psim: Removed.
Files:
2 added
4 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r4ad07d0 r9e6e1e8  
     12007-07-23      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * hello_world_ada/Makefile.anybsp, hello_world_ada/Makefile.pc386,
     4        hello_world_ada/init.c: Clean up.
     5        * hello_world_ada/.cvsiginore, hello_world_ada/README: New files.
     6        * hello_world_ada/Makefile.score603e, hello_world_ada/README.ERC32,
     7        hello_world_ada/README.PSIM, hello_world_ada/gdb.psim: Removed.
     8
    192007-07-17      Joel Sherrill <joel.sherrill@oarcorp.com>
    210
  • hello_world_ada/Makefile.anybsp

    r4ad07d0 r9e6e1e8  
    4242clean:
    4343        rm -f b~$(MAIN).*  *.o *.ali $(MAIN)
     44        rm -f *.num *.exe *.obj *.bin *.bt
  • hello_world_ada/Makefile.pc386

    r4ad07d0 r9e6e1e8  
    5050clean:
    5151        rm -f b_$(MAIN).c b_$(MAIN).o *.o *.ali $(MAIN)
     52        rm -f *.num *.exe *.obj *.bin *.bt
  • hello_world_ada/init.c

    r4ad07d0 r9e6e1e8  
    55 *  The license and distribution terms for this file may be found in
    66 *  the file LICENSE in this distribution or at
    7  *  http://www.OARcorp.com/rtems/license.html.
     7 *  http://www.rtems.com/license/LICENSE.
    88 *
    99 *  $Id$
     
    1818extern rtems_configuration_table  BSP_Configuration;
    1919
     20/*
     21 *  Using GNAT's Distributed Systems Annex support requires
     22 *  each node in the system to have different pid's.  In a
     23 *  single CPU RTEMS system, it is always one.  This lets the
     24 *  user override the RTEMS default.
     25 */
    2026#ifdef GNAT_PID
    21 #include <unistd.h>
    22 pid_t getpid()
    23 {
    24   return GNAT_PID;
    25 }
     27  #include <unistd.h>
     28
     29  pid_t getpid()
     30  {
     31    return GNAT_PID;
     32  }
    2633#endif
    2734
     
    4552}
    4653
    47 extern  size_t  _ada_pthread_minimum_stack_size();
     54#ifndef GNAT_MAIN_STACKSPACE
     55  #define GNAT_MAIN_STACKSPACE 0
     56#endif
    4857
    49 #ifndef GNAT_MAIN_STACKSPACE
    50 #define GNAT_MAIN_STACKSPACE 0
    51 #endif
    5258void *POSIX_Init( void *argument )
    5359{
     
    5662  size_t          stacksize;
    5763  int             status;
    58   printk( "Starting Posix Init thread\n" );
     64  extern  size_t  _ada_pthread_minimum_stack_size();
    5965
    6066  status = pthread_attr_init( &attr );
     
    7177  assert( !status );
    7278
    73   printk( "Exiting Posix Init thread\n" );
    7479  pthread_exit( 0 );
    75 
    7680  return 0;
    7781}
     
    7983/* configuration information */
    8084
     85/* Standard output and a clock tick so time passes */
    8186#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    8287#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    8388
     89/* We want a clock tick every millisecond */
    8490#define CONFIGURE_MICROSECONDS_PER_TICK RTEMS_MILLISECONDS_TO_MICROSECONDS(1)
    8591
     92/* The initialization task is a POSIX Initialization thread with default attributes */
    8693#define CONFIGURE_POSIX_INIT_THREAD_TABLE
    8794
    88 #define CONFIGURE_MAXIMUM_SEMAPHORES 10
     95/* We are using GNAT/RTEMS with a maximum of 20 Ada tasks and no fake Ada tasks. */
     96/* A fake Ada task is a task created outside the Ada run-time that calls into Ada. */
    8997#define CONFIGURE_GNAT_RTEMS
    9098#define CONFIGURE_MAXIMUM_ADA_TASKS      20
    9199#define CONFIGURE_MAXIMUM_FAKE_ADA_TASKS 0
    92100
     101/* Account for any extra task stack size */
    93102#define CONFIGURE_MEMORY_OVERHEAD        (GNAT_MAIN_STACKSPACE)
    94103
     
    96105
    97106#include <rtems/confdefs.h>
    98 
Note: See TracChangeset for help on using the changeset viewer.