diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-10-06 21:46:29 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-10-06 21:46:29 +0000 |
commit | 956c2e4a6a755a716408e07ad32096cdd078c191 (patch) | |
tree | ca88e12437203e259f10de4660f5e212311b0f28 /ticker | |
parent | 8dfd8439b91ac0a056eae8dc18326a6ccdb8b934 (diff) |
2009-10-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* low_ticker1/init.c: Change minimum stack space on SPARC to 1024.
* ticker/init.c: Why was clock tick 1 microsecond?
Diffstat (limited to 'ticker')
-rw-r--r-- | ticker/ChangeLog | 5 | ||||
-rw-r--r-- | ticker/low_ticker1/init.c | 14 | ||||
-rw-r--r-- | ticker/ticker/init.c | 2 |
3 files changed, 18 insertions, 3 deletions
diff --git a/ticker/ChangeLog b/ticker/ChangeLog index 183a499..b8cc993 100644 --- a/ticker/ChangeLog +++ b/ticker/ChangeLog @@ -1,3 +1,8 @@ +2009-10-06 Joel Sherrill <joel.sherrill@oarcorp.com> + + * low_ticker1/init.c: Change minimum stack space on SPARC to 1024. + * ticker/init.c: Why was clock tick 1 microsecond? + 2009-08-06 Joel Sherrill <joel.sherrill@oarcorp.com> * ChangeLog: New file. diff --git a/ticker/low_ticker1/init.c b/ticker/low_ticker1/init.c index ef46f41..cf364de 100644 --- a/ticker/low_ticker1/init.c +++ b/ticker/low_ticker1/init.c @@ -73,7 +73,19 @@ rtems_task Init( #define CONFIGURE_DISABLE_NEWLIB_REENTRANCY #define CONFIGURE_TERMIOS_DISABLED #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 0 -#define CONFIGURE_MINIMUM_TASK_STACK_SIZE 512 + +/* + * Reduce the stack as far as we think is safe on this architecture. + * On small CPUs, the recommended minimum may already be less than + * 512 bytes so do not increase it. But on at least the SPARC, we + * need more than 512 bytes of stack space. + */ +#if defined(__sparc__) + #define CONFIGURE_MINIMUM_TASK_STACK_SIZE 1024 +#elif (CPU_STACK_MINIMUM_SIZE > 512) + #define CONFIGURE_MINIMUM_TASK_STACK_SIZE 512 +#endif + #define CONFIGURE_MAXIMUM_PRIORITY 15 #define CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS #define CONFIGURE_IDLE_TASK_BODY Init diff --git a/ticker/ticker/init.c b/ticker/ticker/init.c index f3e8feb..9ce2abf 100644 --- a/ticker/ticker/init.c +++ b/ticker/ticker/init.c @@ -99,8 +99,6 @@ rtems_task Init( #define CONFIGURE_EXTRA_TASK_STACKS (4 * RTEMS_MINIMUM_STACK_SIZE) -#define CONFIGURE_MICROSECONDS_PER_TICK 1 - #include <rtems/confdefs.h> /**************** END OF CONFIGURATION INFORMATION ****************/ |