HiFive1 BSP current state

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Jul 20 09:48:58 UTC 2017


On 20/07/17 11:34, Denis Obrezkov wrote:

> 2017-07-18 14:10 GMT+02:00 Joel Sherrill <joel.sherrill at gmail.com 
> <mailto:joel.sherrill at gmail.com>>:
>
>     I am not near a computer to check but is there a section in the
>     Configuring a System chapter with a low memory example? I know the
>     individual options are documented but an example configuration
>     with the safer ones to use might help users.
>
> Could you point me to the documentation with the Configuration a 
> System chapter?

For real low memory systems we need self-contained objects and a static 
initialization.

https://lists.rtems.org/pipermail/devel/2017-February/016874.html

For threads we can use something like this:

struct my_thread {
   Thread_Control thread;
   char space_for_thread_control_addons_and_tls_and_stack[N];
} a;

SYSINIT_THREAD(&a, sizeof(a));

If sizeof(a) is too small, then issue a fatal error.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list