Ignore:
Timestamp:
Aug 2, 2018, 12:49:01 PM (16 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
83ca9f0a
Parents:
141d502
git-author:
Sebastian Huber <sebastian.huber@…> (08/02/18 12:49:01)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/02/18 13:33:00)
Message:

score: Remove CPU_PARTITION_ALIGNMENT

Use the CPU_SIZEOF_POINTER alignment instead. The internal alignment
requirement is defined by the use of Chain_Node (consisting of two
pointers) to manage the free chain of partitions.

It seems that previously the condition

CPU_PARTITION_ALIGNMENT >= sizeof(Chain_Node)

was true on all CPU ports. Now, we need an additional check.

Update #3482.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/lm32/include/rtems/score/cpu.h

    r141d502 r27bbc05  
    475475
    476476/**
    477  * This number corresponds to the byte alignment requirement for memory
    478  * buffers allocated by the partition manager.  This alignment requirement
    479  * may be stricter than that for the data types alignment specified by
    480  * @ref CPU_ALIGNMENT.  It is common for the partition to follow the same
    481  * alignment requirement as @ref CPU_ALIGNMENT.  If the @ref CPU_ALIGNMENT is
    482  * strict enough for the partition, then this should be set to
    483  * @ref CPU_ALIGNMENT.
    484  *
    485  * NOTE:  This does not have to be a power of 2.  It does have to
    486  *        be greater or equal to than @ref CPU_ALIGNMENT.
    487  *
    488  * Port Specific Information:
    489  *
    490  * XXX document implementation including references if appropriate
    491  */
    492 #define CPU_PARTITION_ALIGNMENT    CPU_ALIGNMENT
    493 
    494 /**
    495477 * This number corresponds to the byte alignment requirement for the
    496478 * stack.  This alignment requirement may be stricter than that for the
Note: See TracChangeset for help on using the changeset viewer.