Changeset 975ecc17 in rtems


Ignore:
Timestamp:
07/05/18 17:13:37 (5 years ago)
Author:
Andrew Turner <andrew@…>
Branches:
5
Children:
a9ce44b
Parents:
f43beb0
git-author:
Andrew Turner <andrew@…> (07/05/18 17:13:37)
git-committer:
Moyano, Gabriel <gabriel.moyano@…> (11/16/21 08:48:22)
Message:

Create a new macro for static DPCPU data.

On arm64 (and possible other architectures) we are unable to use static
DPCPU data in kernel modules. This is because the compiler will generate
PC-relative accesses, however the runtime-linker expects to be able to
relocate these.

In preparation to fix this create two macros depending on if the data is
global or static.

Reviewed by: bz, emaste, markj
Sponsored by: ABT Systems Ltd
Differential Revision: https://reviews.freebsd.org/D16140

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/kern_tc.c

    rf43beb0 r975ecc17  
    22582258static uint64_t cpu_tick_frequency;
    22592259
    2260 static DPCPU_DEFINE(uint64_t, tc_cpu_ticks_base);
    2261 static DPCPU_DEFINE(unsigned, tc_cpu_ticks_last);
     2260DPCPU_DEFINE_STATIC(uint64_t, tc_cpu_ticks_base);
     2261DPCPU_DEFINE_STATIC(unsigned, tc_cpu_ticks_last);
    22622262
    22632263static uint64_t
Note: See TracChangeset for help on using the changeset viewer.