Ignore:
Timestamp:
Aug 2, 2018, 12:49:01 PM (17 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/sparc/include/rtems/score/cpu.h

    r141d502 r27bbc05  
    772772
    773773/**
    774  * This number corresponds to the byte alignment requirement for memory
    775  * buffers allocated by the partition manager.  This alignment requirement
    776  * may be stricter than that for the data types alignment specified by
    777  * CPU_ALIGNMENT.  It is common for the partition to follow the same
    778  * alignment requirement as CPU_ALIGNMENT.  If the CPU_ALIGNMENT is strict
    779  * enough for the partition, then this should be set to CPU_ALIGNMENT.
    780  *
    781  * NOTE:  This does not have to be a power of 2.  It does have to
    782  *        be greater or equal to than CPU_ALIGNMENT.
    783  */
    784 #define CPU_PARTITION_ALIGNMENT    CPU_ALIGNMENT
    785 
    786 /**
    787774 * Stack frames must be doubleword aligned according to the System V ABI for
    788775 * SPARC.
Note: See TracChangeset for help on using the changeset viewer.