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

    r141d502 r27bbc05  
    364364
    365365/*
    366  *  This number corresponds to the byte alignment requirement for memory
    367  *  buffers allocated by the partition manager.  This alignment requirement
    368  *  may be stricter than that for the data types alignment specified by
    369  *  CPU_ALIGNMENT.  It is common for the partition to follow the same
    370  *  alignment requirement as CPU_ALIGNMENT.  If the CPU_ALIGNMENT is strict
    371  *  enough for the partition, then this should be set to CPU_ALIGNMENT.
    372  *
    373  *  NOTE:  This does not have to be a power of 2.  It does have to
    374  *         be greater or equal to than CPU_ALIGNMENT.
    375  *
    376  */
    377 
    378 #define CPU_PARTITION_ALIGNMENT    CPU_ALIGNMENT
    379 
    380 /*
    381366 *  This number corresponds to the byte alignment requirement for the
    382367 *  stack.  This alignment requirement may be stricter than that for the
Note: See TracChangeset for help on using the changeset viewer.