Changeset f0ae613b in rtems for cpukit


Ignore:
Timestamp:
Jan 17, 2019, 6:33:08 AM (5 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
dca6184
Parents:
e74a3fd
git-author:
Sebastian Huber <sebastian.huber@…> (01/17/19 06:33:08)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/29/19 12:27:01)
Message:

m68k: Avoid _Addresses_Add_offset()

This prevents a cyclic dependency between <rtems/score/cpu.h> and
<rtems/score/address.h>.

File:
1 edited

Legend:

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

    re74a3fd rf0ae613b  
    223223      memset( *(_fp_area), 0, sizeof( Context_Control_fp ) )
    224224  #else
    225     #include <rtems/score/address.h>
    226 
    227225    /*
    228226     *  FP context save area for the M68881/M68882 and 68060 numeric
     
    246244    #define _CPU_Context_Initialize_fp( _fp_area ) \
    247245       { \
    248          uint32_t *_fp_context = _Addresses_Add_offset( \
    249            *(_fp_area), CPU_CONTEXT_FP_SIZE - 4); \
     246         uint32_t *_fp_context = (uint32_t *) \
     247           ( (uintptr_t) *( _fp_area ) + CPU_CONTEXT_FP_SIZE - 4 ); \
    250248         *(--(_fp_context)) = 0; \
    251249         *(_fp_area) = (void *)(_fp_context); \
Note: See TracChangeset for help on using the changeset viewer.