Changeset 65f868c in rtems for c


Ignore:
Timestamp:
May 23, 2018, 12:17:25 PM (17 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
762fa62
Parents:
4c7b18e3
git-author:
Sebastian Huber <sebastian.huber@…> (05/23/18 12:17:25)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/15/18 11:02:44)
Message:

Add _CPU_Counter_frequency()

Add rtems_counter_frequency() API function. Use it to initialize the
counter value converter via the new system initialization step
(RTEMS_SYSINIT_CPU_COUNTER). This decouples the counter implementation
and the counter converter. It avoids an unnecessary pull in of the
64-bit integer division from libgcc.

Update #3456.

Location:
c/src/lib/libbsp
Files:
12 edited

Legend:

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

    r4c7b18e3 r65f868c  
    4747librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
    4848librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/btimer/btimer-stub.c
     49librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    4950librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterread.c
    5051librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/start/bsp-start-memcpy.S
  • c/src/lib/libbsp/arm/csb336/Makefile.am

    r4c7b18e3 r65f868c  
    2626librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/getentropy/getentropy-cpucounter.c
    2727librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c
     28librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    2829librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterread.c
    2930librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
  • c/src/lib/libbsp/arm/csb337/Makefile.am

    r4c7b18e3 r65f868c  
    3535librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c
    3636librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/getentropy/getentropy-cpucounter.c
     37librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    3738librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterread.c
    3839librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
  • c/src/lib/libbsp/arm/edb7312/Makefile.am

    r4c7b18e3 r65f868c  
    2424librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/getentropy/getentropy-cpucounter.c
    2525librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/edb7312/start/bspreset.c
     26librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    2627librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterread.c
    2728librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
  • c/src/lib/libbsp/arm/gdbarmsim/Makefile.am

    r4c7b18e3 r65f868c  
    2626librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c
    2727librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/gdbarmsim/start/syscalls.c
     28librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    2829librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterread.c
    2930librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
  • c/src/lib/libbsp/arm/gumstix/Makefile.am

    r4c7b18e3 r65f868c  
    2525librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/gumstix/start/bspreset.c
    2626librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/gumstix/start/memmap.c
     27librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    2728librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterread.c
    2829librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
  • c/src/lib/libbsp/arm/lm3s69xx/Makefile.am

    r4c7b18e3 r65f868c  
    3535librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    3636librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
     37librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    3738librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterread.c
    3839librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
  • c/src/lib/libbsp/arm/raspberrypi/Makefile.am

    r4c7b18e3 r65f868c  
    4040librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/getentropy/getentropy-cpucounter.c
    4141librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
     42librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    4243librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterread.c
    4344librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
  • c/src/lib/libbsp/arm/rtl22xx/Makefile.am

    r4c7b18e3 r65f868c  
    2626librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c
    2727librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/getentropy/getentropy-cpucounter.c
     28librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    2829librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterread.c
    2930librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
  • c/src/lib/libbsp/arm/smdk2410/Makefile.am

    r4c7b18e3 r65f868c  
    2626
    2727librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
     28librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    2829librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterread.c
    2930librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
  • c/src/lib/libbsp/arm/stm32f4/Makefile.am

    r4c7b18e3 r65f868c  
    3434librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
    3535librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
     36librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    3637librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterread.c
    3738librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
  • c/src/lib/libbsp/sparc/leon2/Makefile.am

    r4c7b18e3 r65f868c  
    2727librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/leon2/start/bspstart.c
    2828librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/start/bspgetworkarea.c
     29librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterfrequency.c
    2930librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/getentropy/getentropy-cpucounter.c
    3031librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c
Note: See TracChangeset for help on using the changeset viewer.