diff options
author | Kinsey Moore <kinsey.moore@oarcorp.com> | 2020-06-29 14:35:08 -0500 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-06-30 09:46:12 +0200 |
commit | 48dd7b8c2ef7056ff4730c378ccd7e9445b5e40f (patch) | |
tree | b5ff28b0721d1208740d81f97c8e0e6fa0b4dbc7 /cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h | |
parent | 37c36def7a7ef4488c68958735275fb23b80fd86 (diff) |
score: Add CPU_USE_LIBC_INIT_FINI_ARRAY
This introduces the CPU_USE_LIBC_INIT_FINI_ARRAY define for use by CPU
ports to determine which global constructor and destructor methods are
used instead of placing architecture defines where they shouldn't be.
Close #4018
Diffstat (limited to 'cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h')
-rw-r--r-- | cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h b/cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h index 7f6e1f539d..84125aa16b 100644 --- a/cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h +++ b/cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h @@ -249,6 +249,13 @@ extern "C" { */ #define CPU_MAXIMUM_PROCESSORS 32 +/** + * The following define determines whether or not this CPU port will use + * libc global constructors and destructors instead of _init/_fini functions + * depending on .ctors and .dtors linker sections. + */ +#define CPU_USE_LIBC_INIT_FINI_ARRAY TRUE + /* * Processor defined structures required for cpukit/score. * |