Changeset e72d576 in ada-examples


Ignore:
Timestamp:
Feb 6, 2008, 6:08:21 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
ada-examples-4-10-branch, ada-examples-4-9-branch, master
Children:
84c019f
Parents:
36fcd41
Message:

2008-02-06 Joel Sherrill <joel.sherrill@…>

  • Makefile.shared, rtems_init.c: More clean up and more generalization.
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r36fcd41 re72d576  
     12008-02-06      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.shared, rtems_init.c: More clean up and more generalization.
     4
    152007-10-17      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • Makefile.shared

    r36fcd41 re72d576  
    2828endif
    2929
     30CFLAGS += $(DEFINES)
     31
    3032all:  $(PROGRAM).exe
    3133
    3234$(PROGRAM).exe: rtems_init.o $(FILESYSTEM_OBJS) $(PROGRAM).adb $(EXTRA_OBJS)
    33         $(AS:as=gnatmake) -v $(EXTRA_GNATFLAGS) \
     35        $(AS:as=gnatmake) \
     36            -I$(RTEMS_MAKEFILE_PATH)/lib/include/adainclude \
     37            -v $(EXTRA_GNATFLAGS) \
    3438            -O -gnata -gnatE -gnato -g $(PROGRAM) -o $(@) \
    3539            -bargs -Mgnat_main \
     
    5155
    5256rtems_init.o: ../rtems_init.c ../networkconfig.h $(FILESYSTEM_SRCS)
    53         $(CC) $(CFLAGS) $(CPU_CFLAGS) -c $<
     57        $(CC) $(CFLAGS) -I. $(CPU_CFLAGS) -c $<
    5458
    5559ifeq ($(NEED_ROOTFS_FOR_HOST_INFO),yes)
  • rtems_init.c

    r36fcd41 re72d576  
    179179  #endif
    180180
     181  #if defined(MAIN_CALL_C_INITIALIZE_APPLICATION)
     182  {
     183    extern void initialize_application();
     184    printk("Invoking C Application Initializion\n");
     185    initialize_application();
     186  }
     187  #endif
     188
     189  /*
     190   * Now create the thread that will be the GNAT Ada main.
     191   */
    181192  status = pthread_attr_init( &attr );
    182193  assert( !status );
     
    198209/* configuration information */
    199210
     211#if defined(HAS_EXTRA_CONFIGURATION)
     212#include "config.h"
     213#endif
     214
    200215/* Standard output and a clock tick so time passes */
    201216#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     
    215230#define CONFIGURE_MICROSECONDS_PER_TICK RTEMS_MILLISECONDS_TO_MICROSECONDS(1)
    216231
    217 /* The initialization task is a POSIX Initialization thread with default attributes */
     232/* The initialization task is a POSIX Initialization thread with default
     233 * attributes.
     234 */
    218235#define CONFIGURE_POSIX_INIT_THREAD_TABLE
    219236
    220 /* We are using GNAT/RTEMS with a maximum of 20 Ada tasks and no fake Ada tasks. */
    221 /* A fake Ada task is a task created outside the Ada run-time that calls into Ada. */
     237/* We are using GNAT/RTEMS with a maximum of 20 Ada tasks and no fake Ada
     238 * tasks.
     239 * NOTE: A fake Ada task is a task created outside the Ada run-time that
     240 * calls into Ada.
     241 */
    222242#define CONFIGURE_GNAT_RTEMS
    223243#define CONFIGURE_MAXIMUM_ADA_TASKS      20
Note: See TracChangeset for help on using the changeset viewer.