Changeset a1f23c2 in rtems


Ignore:
Timestamp:
10/14/22 05:41:33 (11 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
a770651
Parents:
985aaac0
git-author:
Sebastian Huber <sebastian.huber@…> (10/14/22 05:41:33)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/14/22 08:48:23)
Message:

powerpc: Conditionally provide Context_Control_fp

This avoids a pedantic warning about a zero size Context_Control_fp.

File:
1 edited

Legend:

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

    r985aaac0 ra1f23c2  
    450450
    451451#ifndef ASM
     452#if (PPC_HAS_FPU == 1)
    452453typedef struct {
    453 #if (PPC_HAS_FPU == 1)
    454454    /* The ABIs (PowerOpen/SVR4/EABI) only require saving f14-f31 over
    455455     * procedure calls.  However, this would mean that the interrupt
     
    465465    uint32_t    fpscr;
    466466#endif
     467} Context_Control_fp;
    467468#endif /* (PPC_HAS_FPU == 1) */
    468 } Context_Control_fp;
    469 
    470469#endif /* ASM */
    471470
     
    563562 */
    564563
     564#if (PPC_HAS_FPU == 1)
    565565#define CPU_CONTEXT_FP_SIZE sizeof( Context_Control_fp )
     566#endif
    566567
    567568/*
     
    941942RTEMS_NO_RETURN void _CPU_Context_restore( Context_Control *new_context );
    942943
     944#if (PPC_HAS_FPU == 1)
    943945/*
    944946 *  _CPU_Context_save_fp
     
    960962  Context_Control_fp **fp_context_ptr
    961963);
     964#endif
    962965
    963966#ifdef RTEMS_SMP
Note: See TracChangeset for help on using the changeset viewer.