HiFive1 BSP current state
Denis Obrezkov
denisobrezkov at gmail.com
Thu Jul 20 10:17:12 UTC 2017
2017-07-20 11:48 GMT+02:00 Sebastian Huber <
sebastian.huber at embedded-brains.de>:
> 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.
>
> I also have a mistake, it happens I think due to memory corruption:
#0 rtems_heap_allocate_aligned_with_boundary (size=541091836,
alignment=2147499792, boundary=0)
at
/home/reprofy/Projects/riscv/rtems/development/rtems/kernel/rtems-riscv/c/src/../../cpukit/libcsupport/src/malloc_deferred.c:59
#1 0x20417656 in malloc (size=32) at
/home/reprofy/Projects/riscv/rtems/development/rtems/kernel/rtems-riscv/c/src/../../cpukit/libcsupport/src/malloc.c:39
#2 0x20417052 in calloc (nelem=1, elsize=32) at
/home/reprofy/Projects/riscv/rtems/development/rtems/kernel/rtems-riscv/c/src/../../cpukit/libcsupport/src/calloc.c:34
#3 0x20401296 in rtems_termios_device_install (device_file=0x2041fe20
"/dev/console", handler=0x2041fe30 <fe310_uart_handler_polled>, flow=0x0,
context=0x80000060 <driver_context>)
at
/home/reprofy/Projects/riscv/rtems/development/rtems/kernel/rtems-riscv/c/src/../../cpukit/libcsupport/src/termios.c:139
#4 0x2040091e in console_initialize (major=0, minor=0, arg=0x0)
at
/home/reprofy/Projects/riscv/rtems/development/rtems/kernel/rtems-riscv/c/src/lib/libbsp/riscv32/hifive1/console/fe310-uart.c:49
#5 0x20419632 in rtems_io_initialize (major=0, minor=0, argument=0x0)
at
/home/reprofy/Projects/riscv/rtems/development/rtems/kernel/rtems-riscv/c/src/../../cpukit/sapi/src/ioinitialize.c:36
#6 0x2040893e in _IO_Initialize_all_drivers () at
/home/reprofy/Projects/riscv/rtems/development/rtems/kernel/rtems-riscv/c/src/../../cpukit/sapi/src/io.c:33
#7 0x204088e2 in rtems_initialize_executive () at
/home/reprofy/Projects/riscv/rtems/development/rtems/kernel/rtems-riscv/c/src/../../cpukit/sapi/src/exinit.c:95
#8 0x2040045a in boot_card (cmdline=0x0) at
/home/reprofy/Projects/riscv/rtems/development/rtems/kernel/rtems-riscv/c/src/lib/libbsp/riscv32/hifive1/../../shared/bootcard.c:76
#9 0xffffd270 in ?? ()
--
Regards, Denis Obrezkov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20170720/58fec906/attachment-0002.html>
More information about the devel
mailing list