On Fri, Nov 20, 2020 at 9:42 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote:
> > On 20/11/2020 17:35, Gedare Bloom wrote: > >> +#else /* CONFIGURE_INIT_TASK_STORAGE_SIZE */ > >> + > >> +#ifndef CONFIGURE_INIT_TASK_STACK_SIZE > >> + #define CONFIGURE_INIT_TASK_STACK_SIZE > CONFIGURE_MINIMUM_TASK_STACK_SIZE > >> +#endif > >> + > >> +#if CONFIGURE_INIT_TASK_STACK_SIZE > CONFIGURE_MINIMUM_TASK_STACK_SIZE > >> + #define _CONFIGURE_INIT_TASK_STACK_EXTRA \ > >> + ( CONFIGURE_INIT_TASK_STACK_SIZE - > CONFIGURE_MINIMUM_TASK_STACK_SIZE ) > > In some other places, we emit #error instead of fixing the user's > > misconfiguration. Does it make sense to do that here also? > > > > I think the idea is that it is better to make the user do it right > > than for us to hide the fix. > There is no configuration error here. If CONFIGURE_INIT_TASK_STACK_SIZE > is greater than CONFIGURE_MINIMUM_TASK_STACK_SIZE, then this extra stack > size is automatically added to the stack size estimate. > > It is an error to configure an init task stack size smaller than the minimum. We can either fix that error for the user, or tell them to fix it themselves. > -- > embedded brains GmbH > Sebastian HUBER > Dornierstr. 4 > 82178 Puchheim > Germany > email: sebastian.hu...@embedded-brains.de > Phone: +49-89-18 94 741 - 16 > Fax: +49-89-18 94 741 - 08 > PGP: Public key available on request. > > embedded brains GmbH > Registergericht: Amtsgericht München > Registernummer: HRB 157899 > Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler > Unsere Datenschutzerklärung finden Sie hier: > https://embedded-brains.de/datenschutzerklaerung/ > >
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel