Possible mistake in manuals
Binkowski, Cassio
cassioiks at gmail.com
Tue May 7 22:36:04 UTC 2013
Ok. So the manuals should specify this is CPU dependent?
But, one question: Partition and buffer sizes must be passed in bytes,
right?
On Tue, May 7, 2013 at 6:50 PM, <noselasd at fiane.dyndns.org> wrote:
> On 05/07/2013 02:48 AM, Binkowski, Cassio wrote:
>
>> Hi all,
>>
>> Can you please refer to the following link in the manuals and get to
>> where it says "|RTEMS_INVALID_SIZE| - buffer size not a multiple of 4"?
>>
>> http://www.rtems.org/**onlinedocs/releases/rtemsdocs-**
>> 4.10.2/share/rtems/html/c_**user/c_user00242.html<http://www.rtems.org/onlinedocs/releases/rtemsdocs-4.10.2/share/rtems/html/c_user/c_user00242.html>
>>
>> Shouldn't it be a multiple of 8? I just tried creating a partition with
>> buffer size 20 and it didn't allow me to.
>>
>
> It does seem to be a mistake, the alignment must be
> CPU_PARTITION_ALIGNMENT.
> The CPU_PARTITION_ALIGNMENT macro is dependent on the architecture.
>
> The alignment is, for most CPU architectures required to be
> CPU_ALIGNMENT (which is usually 4 or 8).
>
> Some more notes are here :
> http://www.rtems.org/**onlinedocs/releases/rtemsdocs-**
> 4.10.2/share/rtems/html/**porting/porting00077.html<http://www.rtems.org/onlinedocs/releases/rtemsdocs-4.10.2/share/rtems/html/porting/porting00077.html>
>
>
> ______________________________**_________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/**listinfo/rtems-users<http://www.rtems.org/mailman/listinfo/rtems-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20130507/8624877d/attachment-0001.html>
More information about the users
mailing list