Ignore:
Timestamp:
Dec 23, 1997, 4:03:43 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
2934c3e
Parents:
ede9a691
Message:

Added CONFIGURE_GNAT_KEYS to correct the number of keys configured
for GNAT. It was the number of Ada tasks when in fact the run-time
only required a single key.

Also added the CONFIGURE_MAXIMUM_FAKE_ADA_TASKS constant to account
for resources allocated for each non-Ada task/thread which invokes
the Ada run-time implicitly through an Ada call.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/sapi/include/confdefs.h

    rede9a691 r4f7fd59  
    412412
    413413#endif
    414 
    415 #ifndef CONFIGURE_MEMORY_USER_OVERHEAD
    416 #define CONFIGURE_MEMORY_USER_OVERHEAD (96 * 1024)
    417 #endif
    418 
    419414#define CONFIGURE_EXECUTIVE_RAM_SIZE \
    420415(( CONFIGURE_MEMORY_FOR_TASKS(CONFIGURE_MAXIMUM_TASKS) + \
     
    429424   CONFIGURE_MEMORY_FOR_DEVICES(CONFIGURE_MAXIMUM_DEVICES) + \
    430425   CONFIGURE_MEMORY_FOR_MP + \
    431    CONFIGURE_MEMORY_USER_OVERHEAD \
     426   (96*1024) \
    432427) & 0xffff8000)
    433428#endif
     
    435430#ifdef CONFIGURE_GNAT_RTEMS
    436431#define CONFIGURE_GNAT_MUTEXES 10
     432#define CONFIGURE_GNAT_KEYS    1
    437433
    438434/* 20 are required to run all tests in the ACVC */
     
    442438
    443439#else
    444 #define CONFIGURE_GNAT_MUTEXES 0
    445 #define CONFIGURE_MAXIMUM_ADA_TASKS 0
     440#define CONFIGURE_GNAT_MUTEXES           0
     441#define CONFIGURE_GNAT_KEYS              0
     442#define CONFIGURE_MAXIMUM_ADA_TASKS      0
     443#define CONFIGURE_MAXIMUM_FAKE_ADA_TASKS 0
    446444#endif
    447445
     
    465463posix_api_configuration_table Configuration_POSIX_API = {
    466464  CONFIGURE_MAXIMUM_POSIX_THREADS + CONFIGURE_MAXIMUM_ADA_TASKS,
    467   CONFIGURE_MAXIMUM_POSIX_MUTEXES + CONFIGURE_MAXIMUM_ADA_TASKS +
    468      CONFIGURE_GNAT_MUTEXES,
    469   CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES + CONFIGURE_MAXIMUM_ADA_TASKS,
    470   CONFIGURE_MAXIMUM_POSIX_KEYS + CONFIGURE_MAXIMUM_ADA_TASKS,
     465  CONFIGURE_MAXIMUM_POSIX_MUTEXES + CONFIGURE_GNAT_MUTEXES +
     466    CONFIGURE_MAXIMUM_ADA_TASKS + CONFIGURE_MAXIMUM_FAKE_ADA_TASKS,
     467  CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES +
     468    CONFIGURE_MAXIMUM_ADA_TASKS + CONFIGURE_MAXIMUM_FAKE_ADA_TASKS,
     469  CONFIGURE_MAXIMUM_POSIX_KEYS + CONFIGURE_GNAT_KEYS,
    471470  CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS,
    472471  CONFIGURE_POSIX_INIT_THREAD_TABLE_SIZE,
Note: See TracChangeset for help on using the changeset viewer.