Changeset 016859d in ada-examples


Ignore:
Timestamp:
Jul 8, 2008, 3:35:13 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
ada-examples-4-10-branch, ada-examples-4-9-branch, master
Children:
bc4db0b
Parents:
68645f0
Message:

2008-07-08 Joel Sherrill <joel.sherrill@…>

  • Makefile.shared: Add -g. Leave temporary files for debug.
  • rtems_init.c: zero out workspace and heap automatically. This is required by the GNAT run-time.
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r68645f0 r016859d  
     12008-07-08      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.shared: Add -g.  Leave temporary files for debug.
     4        * rtems_init.c: zero out workspace and heap automatically.  This
     5        is required by the GNAT run-time.
     6
    172008-02-06      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • Makefile.shared

    r68645f0 r016859d  
    3434$(PROGRAM).exe: rtems_init.o $(FILESYSTEM_OBJS) $(PROGRAM).adb $(EXTRA_OBJS)
    3535        $(AS:as=gnatmake) \
    36             -I$(RTEMS_MAKEFILE_PATH)/lib/include/adainclude \
     36            -g -I$(RTEMS_MAKEFILE_PATH)/lib/include/adainclude \
    3737            -v $(EXTRA_GNATFLAGS) \
    3838            -O -gnata -gnatE -gnato -g $(PROGRAM) -o $(@) \
     
    5151        $(RTEMS_MAKEFILE_PATH)/build-tools/bin2boot -v $(@).bt $(HEADERADDR) \
    5252          $(START16FILE) $(START16ADDR) 0 $(@).bin $(RELOCADDR) 0
    53         rm -f $(@).obj $(@).bin
     53        # rm -f $(@).obj
     54        rm -f $(@).bin
    5455endif
    5556
  • rtems_init.c

    r68645f0 r016859d  
    200200  assert( !status );
    201201
     202  attr.schedpolicy = SCHED_RR;
     203  attr.schedparam.sched_priority = 122;
    202204  status = pthread_create( &thread_id, &attr, start_gnat_main, NULL );
    203205  assert( !status );
     
    247249#define CONFIGURE_MEMORY_OVERHEAD        (GNAT_MAIN_STACKSPACE)
    248250
     251/* Make sure the C Program Heap and Workspace are zeroed for GNAT */
     252#define CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY TRUE
     253
    249254#define CONFIGURE_INIT
    250255
     256void _flush_cache() {}
    251257#include <rtems/confdefs.h>
Note: See TracChangeset for help on using the changeset viewer.