Changeset 57d29cd in rtems


Ignore:
Timestamp:
Apr 20, 2012, 12:03:39 PM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.10
Children:
811e4b9
Parents:
eeb965b
git-author:
Sebastian Huber <sebastian.huber@…> (04/20/12 12:03:39)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/02/12 08:27:08)
Message:

bsp/genmcf548x: Enable FPU in BSP startup code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/genmcf548x/startup/bspstart.c

    reeb965b r57d29cd  
    7171
    7272/*
    73  * Set initial cacr mode, mainly enables branch/intruction/data cache and
    74  * switch off FPU.
     73 * Set initial CACR mode, mainly enables branch/instruction/data cache.  The
     74 * FPU must be switched on in the BSP startup code since the
     75 * _Thread_Start_multitasking() will restore the floating-point context of the
     76 * initialization task if necessary.
    7577 */
    7678static const uint32_t BSP_CACR_INIT = MCF548X_CACR_DEC /* enable data cache */
     
    8183  | MCF548X_CACR_DESB /* enable data store buffer */
    8284  | MCF548X_CACR_DDSP /* data access only in supv. mode */
    83   | MCF548X_CACR_IDSP /* instr. access only in supv. mode */
    84   | MCF548X_CACR_DF; /* disable FPU */
     85  | MCF548X_CACR_IDSP; /* instr. access only in supv. mode */
    8586
    8687/*
     
    274275  _CPU_cacr_shadow = BSP_CACR_INIT;
    275276
    276   /* Switch on FPU in CACR shadow register if necessary */
    277   if ((Configuration_POSIX_API.number_of_initialization_threads > 0) ||
    278       ((Configuration_RTEMS_API.number_of_initialization_tasks > 0) &&
    279        (Configuration_RTEMS_API.User_initialization_tasks_table
    280         ->attribute_set & RTEMS_FLOATING_POINT) != 0)
    281       ) {
    282     _CPU_cacr_shadow &= ~MCF548X_CACR_DF;
    283   }
    284 
    285277  /*
    286278   * Load the shadow variable of CACR with initial mode and write it to the
Note: See TracChangeset for help on using the changeset viewer.