summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/riscv
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2020-06-29 14:35:08 -0500
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-06-30 09:46:12 +0200
commit48dd7b8c2ef7056ff4730c378ccd7e9445b5e40f (patch)
treeb5ff28b0721d1208740d81f97c8e0e6fa0b4dbc7 /cpukit/score/cpu/riscv
parentChange version to RTEMS 6 (diff)
downloadrtems-48dd7b8c2ef7056ff4730c378ccd7e9445b5e40f.tar.bz2
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/riscv')
-rw-r--r--cpukit/score/cpu/riscv/include/rtems/score/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/score/cpu/riscv/include/rtems/score/cpu.h b/cpukit/score/cpu/riscv/include/rtems/score/cpu.h
index e08307d372..501973a6dc 100644
--- a/cpukit/score/cpu/riscv/include/rtems/score/cpu.h
+++ b/cpukit/score/cpu/riscv/include/rtems/score/cpu.h
@@ -219,6 +219,8 @@ extern void _CPU_Fatal_halt(uint32_t source, uint32_t error) RTEMS_NO_RETURN;
#define CPU_USE_GENERIC_BITFIELD_DATA TRUE
+#define CPU_USE_LIBC_INIT_FINI_ARRAY TRUE
+
#define CPU_MAXIMUM_PROCESSORS 32
typedef uint16_t Priority_bit_map_Word;