Changeset 2fbdbd4 in rtems
- Timestamp:
- 05/24/00 14:36:52 (23 years ago)
- Children:
- 2c8485b
- Parents:
- 1a9006a
- Location:
- c/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/sapi/include/confdefs.h
r1a9006a r2fbdbd4 2 2 * 3 3 * This include file contains the configuration table template that will 4 * be used by the single processor tests to define its default configuration 5 * parameters. 4 * be instantiated by an application based on the setting of a number 5 * of macros. The macros are documented in the Configuring a System 6 * chapter of the Classic API User's Guide 6 7 * 8 * The model is to estimate the memory required for each configured item 9 * and sum those estimates. The estimate can be too high or too low for 10 * a variety of reasons: 11 * 12 * Reasons estimate is too high: 13 * + FP contexts (not all tasks are FP) 14 * 15 * Reasons estimate is too low: 16 * + stacks greater than minimum size 17 * + messages 18 * + application must account for device driver resources 19 * + application must account for add-on library resource requirements 20 * 21 * NOTE: Eventually this may be able to take into account some of 22 * the above. This procedure has evolved from just enough to 23 * support the RTEMS Test Suites into something that can be 24 * used remarkably reliably by most applications. 7 25 * COPYRIGHT (c) 1989-1999. 8 26 * On-Line Applications Research Corporation (OAR). … … 42 60 #define CONFIGURE_MALLOC_REGION 1 43 61 62 /* 63 * File descriptors managed by libio 64 */ 65 44 66 #ifndef CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 45 #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 2067 #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 3 46 68 #endif 47 69 … … 54 76 55 77 /* 78 * Termios resources 79 */ 80 81 #ifdef CONFIGURE_TERMIOS_DISABLED 82 #define CONFIGURE_TERMIOS_SEMAPHORES 0 83 #else 84 85 #ifndef CONFIGURE_NUMBER_OF_TERMIOS_PORTS 86 #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 1 87 #endif 88 89 #define CONFIGURE_TERMIOS_SEMAPHORES \ 90 ((CONFIGURE_NUMBER_OF_TERMIOS_PORTS * 4) + 1) 91 #endif 92 93 /* 56 94 * Mount Table Configuration 57 95 */ … … 63 101 #ifndef CONFIGURE_HAS_OWN_MOUNT_TABLE 64 102 rtems_filesystem_mount_table_t configuration_mount_table = { 65 #ifdef CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM 103 #ifdef CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM 104 &IMFS_ops, 105 #else /* using miniIMFS as base filesystem */ 66 106 &miniIMFS_ops, 67 #else /* using IMFS as base filesystem */68 &IMFS_ops,69 107 #endif 70 108 RTEMS_FILESYSTEM_READ_WRITE, … … 95 133 /* 96 134 * Interrupt Stack Space 135 * 136 * NOTE: There is currently no way for the application to override 137 * the interrupt stack size set by the BSP. 97 138 */ 98 139 99 140 #if (CPU_ALLOCATE_INTERRUPT_STACK == 0) 141 #undef CONFIGURE_INTERRUPT_STACK_MEMORY 100 142 #define CONFIGURE_INTERRUPT_STACK_MEMORY 0 101 143 #else 102 144 #ifndef CONFIGURE_INTERRUPT_STACK_MEMORY 103 145 #define CONFIGURE_INTERRUPT_STACK_MEMORY RTEMS_MINIMUM_STACK_SIZE 104 #else105 #define CONFIGURE_INTERRUPT_STACK_MEMORY 0106 146 #endif 107 147 #endif … … 246 286 247 287 /* 248 * Default Configuration Table. This table contains the most values set in249 * the RTEMS Test Suite. Each value may be overridden within each test to250 * customize the environment.288 * Default Multiprocessing Configuration Table. The defaults are 289 * appropriate for most of the RTEMS Multiprocessor Test Suite. Each 290 * value may be overridden within each test to customize the environment. 251 291 */ 252 292 … … 296 336 297 337 /* 298 * Default Configuration Table. This table contains the most values set in 299 * the RTEMS Test Suite. Each value may be overridden within each test to 300 * customize the environment. 338 * Default Configuration Table. 301 339 */ 302 340 … … 308 346 309 347 #ifndef CONFIGURE_MAXIMUM_TASKS 310 #define CONFIGURE_MAXIMUM_TASKS 10348 #define CONFIGURE_MAXIMUM_TASKS 0 311 349 #endif 312 350 … … 394 432 395 433 #ifndef CONFIGURE_MAXIMUM_POSIX_THREADS 396 #define CONFIGURE_MAXIMUM_POSIX_THREADS 10434 #define CONFIGURE_MAXIMUM_POSIX_THREADS 0 397 435 #endif 398 436 … … 431 469 /* 432 470 * The user is defining their own table information and setting the 433 * appropriate variables .471 * appropriate variables for the POSIX Initialization Thread Table. 434 472 */ 435 473 … … 548 586 549 587 #ifndef CONFIGURE_MAXIMUM_ITRON_TASKS 550 #define CONFIGURE_MAXIMUM_ITRON_TASKS 10588 #define CONFIGURE_MAXIMUM_ITRON_TASKS 0 551 589 #endif 552 590 … … 585 623 /* 586 624 * The user is defining their own table information and setting the 587 * appropriate variables .625 * appropriate variables for the ITRON Initialization Task Table. 588 626 */ 589 627 … … 710 748 /* 711 749 * Calculate the RAM size based on the maximum number of objects configured. 712 * The model is to estimate the memory required for each configured item,713 * sum the memory requirements and insure that there is at least 32K greater714 * than that for things not directly addressed such as:715 *716 * + stacks greater than minimum size717 * + FP contexts718 * + API areas (should be optional)719 * + messages720 * + object name and local pointer table overhead721 * + per node memory requirements722 * + executive fixed requirements (including at least internal threads723 * and the Ready chains)724 *725 * NOTE: Eventually this should take into account some of the above.726 * Basically, this is a "back of the envelope" estimate for727 * memory requirements. It could be more accurate.728 750 */ 729 751 … … 823 845 CONFIGURE_MEMORY_FOR_TIMERS(CONFIGURE_MAXIMUM_TIMERS) + \ 824 846 CONFIGURE_MEMORY_FOR_SEMAPHORES(CONFIGURE_MAXIMUM_SEMAPHORES + \ 825 CONFIGURE_LIBIO_SEMAPHORES ) + \847 CONFIGURE_LIBIO_SEMAPHORES + CONFIGURE_TERMIOS_SEMAPHORES) + \ 826 848 CONFIGURE_MEMORY_FOR_MESSAGE_QUEUES(CONFIGURE_MAXIMUM_MESSAGE_QUEUES) + \ 827 849 CONFIGURE_MEMORY_FOR_PARTITIONS(CONFIGURE_MAXIMUM_PARTITIONS) + \ … … 873 895 CONFIGURE_MAXIMUM_TASKS, 874 896 CONFIGURE_MAXIMUM_TIMERS, 875 CONFIGURE_MAXIMUM_SEMAPHORES + CONFIGURE_LIBIO_SEMAPHORES, 897 CONFIGURE_MAXIMUM_SEMAPHORES + CONFIGURE_LIBIO_SEMAPHORES + 898 CONFIGURE_TERMIOS_SEMAPHORES, 876 899 CONFIGURE_MAXIMUM_MESSAGE_QUEUES, 877 900 CONFIGURE_MAXIMUM_PARTITIONS, … … 949 972 #endif 950 973 974 /* 975 * Some warnings and error checking 976 */ 977 978 /* 979 * Make sure a task/thread of some sort is configured 980 */ 981 982 #if (CONFIGURE_MAXIMUM_TASKS == 0) && \ 983 (CONFIGURE_MAXIMUM_POSIX_THREADS == 0) && \ 984 (CONFIGURE_MAXIMUM_ADA_TASKS == 0) && \ 985 (CONFIGURE_MAXIMUM_ITRON_TASKS == 0) 986 #error "CONFIGURATION ERROR: No tasks or threads configured!! 987 #endif 988 989 /* 990 * Make sure at least one of the initialization task/thread 991 * tables was defined. 992 */ 993 994 #if !defined(CONFIGURE_RTEMS_INIT_TASKS_TABLE) && \ 995 !defined(CONFIGURE_POSIX_INIT_THREAD_TABLE) && \ 996 !defined(CONFIGURE_ITRON_INIT_TASK_TABLE) 997 #error "CONFIGURATION ERROR: No initialization tasks or threads configured!! 998 #endif 999 951 1000 #endif 952 1001 /* end of include file */ -
c/src/lib/include/console.h
r1a9006a r2fbdbd4 24 24 { console_initialize, console_open, console_close, \ 25 25 console_read, console_write, console_control } 26 27 void console_reserve_resources(28 rtems_configuration_table *configuration29 );30 26 31 27 rtems_device_driver console_initialize( -
c/src/lib/libbsp/a29k/portsw/include/bsp.h
r1a9006a r2fbdbd4 25 25 #include <console.h> 26 26 #include <clockdrv.h> 27 28 /* 29 * confdefs.h overrides for this BSP: 30 * - number of termios serial ports (defaults to 1) 31 * - Interrupt stack space is not minimum if defined. 32 */ 33 34 /* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */ 35 #define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024) 27 36 28 37 /* -
c/src/lib/libbsp/a29k/portsw/startup/bspstart.c
r1a9006a r2fbdbd4 141 141 Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */ 142 142 Cpu_table.postdriver_hook = bsp_postdriver_hook; 143 Cpu_table.interrupt_stack_size = 4096;143 Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY; 144 144 145 145 _settrap( 109,&a29k_enable_sup); -
c/src/lib/libbsp/bare/include/bsp.h
r1a9006a r2fbdbd4 25 25 #include <console.h> 26 26 #include <clockdrv.h> 27 28 /* 29 * confdefs.h overrides for this BSP: 30 * - number of termios serial ports (defaults to 1) 31 * - Interrupt stack space is not minimum if defined. 32 */ 33 34 /* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */ 35 #define CONFIGURE_INTERRUPT_STACK_MEMORY (12 * 1024) 27 36 28 37 /* -
c/src/lib/libbsp/hppa1.1/simhppa/include/bsp.h
r1a9006a r2fbdbd4 23 23 #include <clockdrv.h> 24 24 #include <rtems/ttydrv.h> 25 26 /* 27 * confdefs.h overrides for this BSP: 28 * - number of termios serial ports (defaults to 1) 29 * - Interrupt stack space is not minimum if defined. 30 */ 31 32 /* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */ 33 /* #define CONFIGURE_INTERRUPT_STACK_MEMORY (TBD * 1024) */ 25 34 26 35 /* -
c/src/lib/libbsp/hppa1.1/simhppa/startup/bspstart.c
r1a9006a r2fbdbd4 190 190 191 191 Cpu_table.do_zero_of_workspace = FALSE; 192 Cpu_table.interrupt_stack_size = (12 * 1024);192 Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY; 193 193 194 194 /* … … 230 230 BSP_Configuration.maximum_extensions++; 231 231 #endif 232 233 /*234 * Add 1 extension for MPCI_fatal235 */236 237 if (BSP_Configuration.User_multiprocessing_table)238 BSP_Configuration.maximum_extensions++;239 232 240 233 /* -
c/src/lib/libbsp/i386/i386ex/console/console.c
r1a9006a r2fbdbd4 96 96 } 97 97 98 void console_reserve_resources(rtems_configuration_table *conf)99 {100 rtems_termios_reserve_resources(conf, 1);101 return;102 }103 104 98 void __assert (const char *file, int line, const char *msg) 105 99 { -
c/src/lib/libbsp/i386/i386ex/include/bsp.h
r1a9006a r2fbdbd4 26 26 #include <irq.h> 27 27 28 /* 29 * confdefs.h overrides for this BSP: 30 * - number of termios serial ports (defaults to 1) 31 * - Interrupt stack space is not minimum if defined. 32 */ 33 34 /* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */ 35 #define CONFIGURE_INTERRUPT_STACK_MEMORY (8 * 1024) 36 28 37 /* 29 38 * Define the time limits for RTEMS Test Suite test durations.
Note: See TracChangeset
for help on using the changeset viewer.