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/mips/include/rtems/score/cpu.h

    r141d502 r27bbc05  
    554554
    555555/*
    556  *  This number corresponds to the byte alignment requirement for memory
    557  *  buffers allocated by the partition manager.  This alignment requirement
    558  *  may be stricter than that for the data types alignment specified by
    559  *  CPU_ALIGNMENT.  It is common for the partition to follow the same
    560  *  alignment requirement as CPU_ALIGNMENT.  If the CPU_ALIGNMENT is strict
    561  *  enough for the partition, then this should be set to CPU_ALIGNMENT.
    562  *
    563  *  NOTE:  This does not have to be a power of 2.  It does have to
    564  *         be greater or equal to than CPU_ALIGNMENT.
    565  */
    566 
    567 #define CPU_PARTITION_ALIGNMENT    CPU_ALIGNMENT
    568 
    569 /*
    570556 *  This number corresponds to the byte alignment requirement for the
    571557 *  stack.  This alignment requirement may be stricter than that for the
Note: See TracChangeset for help on using the changeset viewer.