Changeset 991fdb33 in rtems for c/src/lib/libbsp/arm/tms570


Ignore:
Timestamp:
Feb 26, 2015, 8:31:27 PM (5 years ago)
Author:
Martin Galvan <martin.galvan@…>
Branches:
4.11, master
Children:
4ccb79bc
Parents:
63e91fe6
git-author:
Martin Galvan <martin.galvan@…> (02/26/15 20:31:27)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/27/15 11:05:36)
Message:

ARM: Add BSP_START_NEEDS_REGISTER_INITIALIZATION

This patch adds the macro BSP_START_NEEDS_REGISTER_INITIALIZATION and
three hooks for BSP-specific register init code to arm/shared/start.S.
Said hooks are bsp_start_init_registers_core (intended for initializing
the ARM core registers), bsp_start_init_registers_banked_fiq (for the
FIQ mode banked registers) and bsp_start_init_registers_vfp (for the FPU
registers). BSP_START_NEEDS_REGISTER_INITIALIZATION would be defined in
a BSP's configure.ac (so that it appears in its bspopts.h).

This patch also adds the register init code required by the TMS570.
We've tested it with the tms570ls3137_hdk.cfg config and it works fine.

Location:
c/src/lib/libbsp/arm/tms570
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/tms570/Makefile.am

    r63e91fe6 r991fdb33  
    8383# Startup
    8484libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
     85libbsp_a_SOURCES += ../shared/startup/bsp-start-init-registers.S
    8586libbsp_a_SOURCES += ../../shared/bsppretaskinghook.c
    8687libbsp_a_SOURCES += startup/bspreset.c
  • c/src/lib/libbsp/arm/tms570/configure.ac

    r63e91fe6 r991fdb33  
    3737                        size in bytes])
    3838
     39RTEMS_BSPOPTS_SET([BSP_START_NEEDS_REGISTER_INITIALIZATION],[*],[1])
     40RTEMS_BSPOPTS_HELP([BSP_START_NEEDS_REGISTER_INITIALIZATION],
     41                                        [The TMS570 needs to have the registers of its CPU initialized
     42                                        to avoid CCMR4F errors])
     43
    3944RTEMS_BSPOPTS_SET([TMS570_OSCILLATOR_MAIN],[*],[12000000U])
    4045RTEMS_BSPOPTS_HELP([TMS570_OSCILLATOR_MAIN],[main oscillator frequency in Hz])
Note: See TracChangeset for help on using the changeset viewer.