Re: rtems_region_create() returning error code

2018-05-30 Thread Sebastian Huber
- Am 30. Mai 2018 um 16:20 schrieb Francesco Nuzzolo francesco.nuzz...@spaceapplications.com: > Thanks for the answer. > > Do you know if there is a clean way to force allocation of an array to > an 8-byte boundary in LEON? > > Maybe defining the array as double, since sizeof(double) is 8 o

Re: rtems_region_create() returning error code

2018-05-30 Thread Francesco Nuzzolo
Thanks for the answer. Do you know if there is a clean way to force allocation of an array to an 8-byte boundary in LEON? Maybe defining the array as double, since sizeof(double) is 8 on LEON ? Or should I stop using the region manager altogether? Best regards, Francesco On 5/30/2018 10

Re: rtems_region_create() returning error code

2018-05-30 Thread Sebastian Huber
On 30/05/18 10:19, Francesco Nuzzolo wrote: - starting address is not on a four byte boundary. This is a bug in the documentation and in the 4.10 region implementation. The starting address must be aligned to the CPU_ALIGNMENT which is 8 on SPARC. -- Sebastian Huber, embedded brains GmbH A

rtems_region_create() returning error code

2018-05-30 Thread Francesco Nuzzolo
Hello, I want to use the RTEMS region manager but the function rtems_region_create() fails with code RTEMS_INVALID_ADDRESS. I am using RTEMS 4.10 on a LEON4 processor. My RTEMS configuration information includes: #define CONFIGURE_MAXIMUM_REGIONS   1 According to the RTEMS C Us