X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fproc.h;h=b396a2c9a94d256d4a8fbcfd70f8959992a1cc5b;hb=52e3ef495747fbf882c1d64ac1b55cb13034f509;hp=efbdf458fb6ed5c0db5ca50e829af970d7042512;hpb=57277a9de537262e359a14a36d01cd30bd1cd5ae;p=bertos.git diff --git a/bertos/kern/proc.h b/bertos/kern/proc.h index efbdf458..b396a2c9 100644 --- a/bertos/kern/proc.h +++ b/bertos/kern/proc.h @@ -71,6 +71,14 @@ void proc_init(void); /** * Create a new named process and schedules it for execution. * + * When defining the stacksize take into account that you may want at least: + * \li save all the registers for each nested function call; + * \li have memory for the struct Process, which is positioned at the bottom + * of the stack; + * \li have some memory for temporary variables inside called functions. + * + * The value given by CONFIG_KERN_MINSTACKSIZE is rather safe to use in the first place. + * * \note The function * \code * proc_new(entry, data, stacksize, stack)